Udostępnij za pośrednictwem


View.IsTemporarilyDetached Property

Definition

Tells whether the View is in the state between #onStartTemporaryDetach() and #onFinishTemporaryDetach().

public bool IsTemporarilyDetached { [Android.Runtime.Register("isTemporarilyDetached", "()Z", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isTemporarilyDetached", "()Z", "", ApiSince=24)>]
member this.IsTemporarilyDetached : bool

Property Value

true when the View is in the state between #onStartTemporaryDetach() and #onFinishTemporaryDetach().

Attributes

Remarks

Tells whether the View is in the state between #onStartTemporaryDetach() and #onFinishTemporaryDetach().

This method always returns true when called directly or indirectly from #onStartTemporaryDetach(). The return value when called directly or indirectly from #onFinishTemporaryDetach(), however, depends on the OS version. <ul> <li>true on android.os.Build.VERSION_CODES#N API 24</li> <li>false on android.os.Build.VERSION_CODES#N_MR1 API 25} and later</li> </ul>

Java documentation for android.view.View.isTemporarilyDetached().

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.

Applies to