언어

AppFunctionState.IsEnabled Property

Definition

Returns whether this app function can be executed.

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

Property Value

Returns whether this app function can be executed.

Attributes

Remarks

Returns whether this app function can be executed.

This can be false if: The app disabled the function with AppFunctionManager.setAppFunctionEnabled; The function is disabled by default using AppFunctionMetadata.PROPERTY_ENABLED_BY_DEFAULT and was never enabled; The associated AppFunctionService is disabled; A function without an associated AppFunctionService has not been registered using AppFunctionManager.registerAppFunction, or has been unregistered; The process registering the function using AppFunctionManager.registerAppFunction is frozen, or the Context used to register it has been destroyed.

Android reference for android.app.appfunctions.AppFunctionState.isEnabled.

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