# SplitPlaceholderRule.Builder

# SplitPlaceholderRule.Builder

Artifact:[androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window)  
[View Source](https://cs.android.com/search?q=file:androidx/window/embedding/SplitPlaceholderRule.kt+class:androidx.window.embedding.SplitPlaceholderRule.Builder)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/window/embedding/SplitPlaceholderRule.Builder "View this page in Java")

<br />

```
class SplitPlaceholderRule.Builder
```

<br />

*** ** * ** ***

Builder for[SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule).

## Summary

|                                                                                                                                                                                                                                    ### Public constructors                                                                                                                                                                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#Builder(kotlin.collections.Set,android.content.Intent))`(filters: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[ActivityFilter](https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityFilter)`>, placeholderIntent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)`)` |

|                                                         ### Public functions                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule)                 | [build](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#build())`()` Builds a`SplitPlaceholderRule`instance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setDefaultSplitAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setDefaultSplitAttributes(androidx.window.embedding.SplitAttributes))`(defaultSplitAttributes: `[SplitAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes)`)` Sets the default[SplitAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes)to apply on the activity containers pair when the host task bounds satisfy[minWidthDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#minWidthDp()),[minHeightDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#minHeightDp()),[minSmallestWidthDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#minSmallestWidthDp()),[maxAspectRatioInPortrait](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#maxAspectRatioInPortrait())and[maxAspectRatioInLandscape](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#maxAspectRatioInLandscape())requirements. |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setFinishPrimaryWithPlaceholder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setFinishPrimaryWithPlaceholder(androidx.window.embedding.SplitRule.FinishBehavior))`(` ` finishPrimaryWithPlaceholder: `[SplitRule.FinishBehavior](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule.FinishBehavior) `)` Sets the behavior of the primary container when all activities are finished in the associated placeholder container.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setMaxAspectRatioInLandscape](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setMaxAspectRatioInLandscape(androidx.window.embedding.EmbeddingAspectRatio))`(aspectRatio: `[EmbeddingAspectRatio](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio)`)` Sets the largest value of the aspect ratio, expressed as`width / height`in decimal form, of the parent window bounds in landscape when the split should be used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setMaxAspectRatioInPortrait](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setMaxAspectRatioInPortrait(androidx.window.embedding.EmbeddingAspectRatio))`(aspectRatio: `[EmbeddingAspectRatio](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio)`)` Sets the largest value of the aspect ratio, expressed as`height / width`in decimal form, of the parent window bounds in portrait when the split should be used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setMinHeightDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setMinHeightDp(kotlin.Int))`(minHeightDp: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the smallest value of height of the parent task window when the split should be used, in DP.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setMinSmallestWidthDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setMinSmallestWidthDp(kotlin.Int))`(minSmallestWidthDp: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the smallest value of the smallest possible width of the parent window in any rotation when the split should be used, in DP.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setMinWidthDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setMinWidthDp(kotlin.Int))`(minWidthDp: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the smallest value of width of the parent window when the split should be used, in DP.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setSticky](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setSticky(kotlin.Boolean))`(isSticky: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Sets whether the placeholder will show on top in a smaller window size after it first appeared in a split with sufficient minimum width.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [SplitPlaceholderRule.Builder](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder) | [setTag](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setTag(kotlin.String))`(tag: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?)` Sets a unique string to identify this[SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule), which defaults to`null`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

## Public constructors

### Builder

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
Builder(filters: Set<ActivityFilter>, placeholderIntent: Intent)
```  

|                                                                                                    Parameters                                                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
| `filters: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[ActivityFilter](https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityFilter)`>` | Filters used to choose when to apply this rule. The rule may be used if any one of the provided filters matches. |
| `placeholderIntent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)                                                                                                                | Intent to launch the placeholder activity.                                                                       |

## Public functions

### build

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun build(): SplitPlaceholderRule
```

Builds a`SplitPlaceholderRule`instance.  

|                                                        Returns                                                        |
|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------|
| [SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule) | The new`SplitPlaceholderRule`instance. |

### setDefaultSplitAttributes

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setDefaultSplitAttributes(defaultSplitAttributes: SplitAttributes): SplitPlaceholderRule.Builder
```

Sets the default[SplitAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes)to apply on the activity containers pair when the host task bounds satisfy[minWidthDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#minWidthDp()),[minHeightDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#minHeightDp()),[minSmallestWidthDp](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#minSmallestWidthDp()),[maxAspectRatioInPortrait](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#maxAspectRatioInPortrait())and[maxAspectRatioInLandscape](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#maxAspectRatioInLandscape())requirements.  

|                                                              Parameters                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `defaultSplitAttributes: `[SplitAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes) | the default[SplitAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes)to apply on the activity containers pair when the host task bounds satisfy all the rule requirements. |

### setFinishPrimaryWithPlaceholder

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setFinishPrimaryWithPlaceholder(
    finishPrimaryWithPlaceholder: SplitRule.FinishBehavior
): SplitPlaceholderRule.Builder
```

Sets the behavior of the primary container when all activities are finished in the associated placeholder container.

**Note** that it is not valid to set[SplitRule.FinishBehavior.NEVER](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule.FinishBehavior#NEVER())  

|                                                                          Parameters                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `finishPrimaryWithPlaceholder: `[SplitRule.FinishBehavior](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule.FinishBehavior) | the[SplitRule.FinishBehavior](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule.FinishBehavior)of the primary container when all activities are finished in the associated placeholder container. |

|                                                         See also                                                         |
|--------------------------------------------------------------------------------------------------------------------------|---|
| [ALWAYS](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule.FinishBehavior#ALWAYS())     |   |
| [ADJACENT](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule.FinishBehavior#ADJACENT()) |   |

### setMaxAspectRatioInLandscape

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setMaxAspectRatioInLandscape(aspectRatio: EmbeddingAspectRatio): SplitPlaceholderRule.Builder
```

Sets the largest value of the aspect ratio, expressed as`width / height`in decimal form, of the parent window bounds in landscape when the split should be used. When the window aspect ratio is greater than requested here, activities in the secondary container will be stacked on top of the activities in the primary one, completely overlapping them.

This value is only used when the parent window is in landscape (width height).

The default is[SPLIT_MAX_ASPECT_RATIO_LANDSCAPE_DEFAULT](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MAX_ASPECT_RATIO_LANDSCAPE_DEFAULT())if the app doesn't set, which is the recommend value to always allow split when the parent window is in landscape.  

|                                                              Parameters                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `aspectRatio: `[EmbeddingAspectRatio](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio) | the largest value of the aspect ratio, expressed as`width / height`in decimal form, of the parent window bounds in landscape when the split should be used. |

|                                                              See also                                                              |
|------------------------------------------------------------------------------------------------------------------------------------|---|
| [ratio](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio#ratio(kotlin.Float))         |   |
| [ALWAYS_ALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio#ALWAYS_ALLOW())       |   |
| [ALWAYS_DISALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio#ALWAYS_DISALLOW()) |   |

### setMaxAspectRatioInPortrait

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setMaxAspectRatioInPortrait(aspectRatio: EmbeddingAspectRatio): SplitPlaceholderRule.Builder
```

Sets the largest value of the aspect ratio, expressed as`height / width`in decimal form, of the parent window bounds in portrait when the split should be used. When the window aspect ratio is greater than requested here, activities in the secondary container will be stacked on top of the activities in the primary one, completely overlapping them.

This value is only used when the parent window is in portrait (height \>= width).

The default is[SPLIT_MAX_ASPECT_RATIO_PORTRAIT_DEFAULT](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MAX_ASPECT_RATIO_PORTRAIT_DEFAULT())if the app doesn't set, which is the recommend value to only allow split when the parent window is not too stretched in portrait.  

|                                                              Parameters                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `aspectRatio: `[EmbeddingAspectRatio](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio) | the largest value of the aspect ratio, expressed as`height / width`in decimal form, of the parent window bounds in portrait when the split should be used. |

|                                                              See also                                                              |
|------------------------------------------------------------------------------------------------------------------------------------|---|
| [ratio](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio#ratio(kotlin.Float))         |   |
| [ALWAYS_ALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio#ALWAYS_ALLOW())       |   |
| [ALWAYS_DISALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAspectRatio#ALWAYS_DISALLOW()) |   |

### setMinHeightDp

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setMinHeightDp(minHeightDp: @IntRange(from = 0) Int): SplitPlaceholderRule.Builder
```

Sets the smallest value of height of the parent task window when the split should be used, in DP. When the window size is smaller than requested here, activities in the secondary container will be stacked on top of the activities in the primary one, completely overlapping them.

It is useful if it's necessary to split the parent window horizontally for this[SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule).

The default is[SPLIT_MIN_DIMENSION_DP_DEFAULT](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MIN_DIMENSION_DP_DEFAULT())if the app doesn't set.[SPLIT_MIN_DIMENSION_ALWAYS_ALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MIN_DIMENSION_ALWAYS_ALLOW())means to always allow split.  

|                                                                                           Parameters                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|
| `minHeightDp: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the smallest value of height of the parent task window when the split should be used, in DP. |

|                                                                 See also                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------|---|
| [TOP_TO_BOTTOM](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#TOP_TO_BOTTOM()) |   |
| [BOTTOM_TO_TOP](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#BOTTOM_TO_TOP()) |   |

### setMinSmallestWidthDp

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setMinSmallestWidthDp(minSmallestWidthDp: @IntRange(from = 0) Int): SplitPlaceholderRule.Builder
```

Sets the smallest value of the smallest possible width of the parent window in any rotation when the split should be used, in DP. When the window size is smaller than requested here, activities in the secondary container will be stacked on top of the activities in the primary one, completely overlapping them.

The default is[SPLIT_MIN_DIMENSION_DP_DEFAULT](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MIN_DIMENSION_DP_DEFAULT())if the app doesn't set.[SPLIT_MIN_DIMENSION_ALWAYS_ALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MIN_DIMENSION_ALWAYS_ALLOW())means to always allow split.  

|                                                                                               Parameters                                                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| `minSmallestWidthDp: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the smallest value of the smallest possible width of the parent window in any rotation when the split should be used, in DP. |

### setMinWidthDp

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setMinWidthDp(minWidthDp: @IntRange(from = 0) Int): SplitPlaceholderRule.Builder
```

Sets the smallest value of width of the parent window when the split should be used, in DP. When the window size is smaller than requested here, activities in the secondary container will be stacked on top of the activities in the primary one, completely overlapping them.

The default is[SPLIT_MIN_DIMENSION_DP_DEFAULT](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MIN_DIMENSION_DP_DEFAULT())if the app doesn't set.[SPLIT_MIN_DIMENSION_ALWAYS_ALLOW](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#SPLIT_MIN_DIMENSION_ALWAYS_ALLOW())means to always allow split.  

|                                                                                           Parameters                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| `minWidthDp: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the smallest value of width of the parent window when the split should be used, in DP. |

### setSticky

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setSticky(isSticky: Boolean): SplitPlaceholderRule.Builder
```

Sets whether the placeholder will show on top in a smaller window size after it first appeared in a split with sufficient minimum width.  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `isSticky: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | whether the placeholder will show on top in a smaller window size after it first appeared in a split with sufficient minimum width. |

### setTag

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)  

```
fun setTag(tag: String?): SplitPlaceholderRule.Builder
```

Sets a unique string to identify this[SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule), which defaults to`null`. The suggested usage is to set the tag to be able to differentiate between different rules in the[SplitAttributesCalculatorParams.splitRuleTag](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#splitRuleTag()).  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| `tag: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | unique string to identify this[SplitPlaceholderRule](https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule). |