ChooserSession.InitialRestingBounds Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the initial resting bound for the Chooser, or null if bounds have not yet
been received.
public Android.Graphics.Rect? InitialRestingBounds { [Android.Runtime.Register("getInitialRestingBounds", "()Landroid/graphics/Rect;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getInitialRestingBounds", "()Landroid/graphics/Rect;", "", ApiSince=37)>]
member this.InitialRestingBounds : Android.Graphics.Rect
Property Value
Returns the initial resting bound for the Chooser, or null if bounds have not yet been received.
- Attributes
Remarks
Returns the initial resting bound for the Chooser, or null if bounds have not yet been received. This is the target position of the Chooser after any animation and data loading are complete.
This value is intended to help applications make an informed decision on how to react to Chooser bounds changes. For example, if the Chooser is a bottom sheet launched into a compact representation (but whose bounds can change later), this value can provide the dimensions for that initial compact representation. An application that wishes to limit its UI changes only to that specific size can use this value.
It is possible for this value to change (e.g., after a configuration change or after a target intent update) and the updated value should be available to the clients at the time of ChooserSession.StateListener.onBoundsChanged(Rect) invocation.
Android reference for android.service.chooser.ChooserSession.getInitialRestingBounds.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.