ChooserSession.SetTargetsEnabled(Boolean) Method
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.
Sets whether the targets in the chooser UI are enabled.
[Android.Runtime.Register("setTargetsEnabled", "(Z)V", "", ApiSince=36)]
public void SetTargetsEnabled(bool isEnabled);
[<Android.Runtime.Register("setTargetsEnabled", "(Z)V", "", ApiSince=36)>]
member this.SetTargetsEnabled : bool -> unit
Parameters
- isEnabled
- Boolean
- Attributes
Remarks
Sets whether the targets in the chooser UI are enabled. By default targets are enabled.
This method is primarily intended to allow for managing a transient state, particularly useful during long-running operations. By disabling targets, launching application can prevent unintended interactions.
A no-op when the session is not in the #STATE_STARTED.
Java documentation for android.service.chooser.ChooserSession.setTargetsEnabled(boolean).
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.