Stay organized with collections
Save and categorize content based on your preferences.
public final class SplitPinRule extends SplitRule
Split configuration rules for pinning an ActivityStack. Define how the pinned ActivityStack should be displayed side-by-side with the other ActivityStack.
Summary
Public methods |
boolean |
|
int |
|
final boolean |
Whether this rule should be sticky.
|
@NonNull String |
|
Inherited methods |
| From androidx.window.embedding.EmbeddingRule
|
From androidx.window.embedding.SplitRule
final @NonNull SplitAttributes |
The default SplitAttributes to apply on the activity containers pair when the host task bounds satisfy minWidthDp, minHeightDp, minSmallestWidthDp, maxAspectRatioInPortrait and maxAspectRatioInLandscape requirements.
|
final @NonNull 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.
|
final @NonNull 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.
|
final int |
The smallest value of height of the parent task window when the split should be used, in DP.
|
final int |
The smallest value of the smallest possible width of the parent task window in any rotation when the split should be used, in DP.
|
final int |
The smallest value of width of the parent task window when the split should be used, in DP.
|
|
Public methods
public final boolean isSticky()
Whether this rule should be sticky. If the value is false, this rule be removed whenever the pinned ActivityStack is unpinned. Set to true if the rule should be applied whenever once again possible (e.g. the host Task bounds satisfies the size and aspect ratio requirements).
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-24 UTC."],[],[]]