AppFunctionState


class AppFunctionState


Runtime state of an app function.

This holds properties of an app function that can change at runtime during the app's operation, such as whether the function is enabled.

This is distinct from androidx.appfunctions.metadata.AppFunctionMetadata, which represents the metadata that remains constant until the providing package is updated. While androidx.appfunctions.metadata.AppFunctionMetadata defines what a function is, the AppFunctionState defines its current operational status.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

ArraySet<AppFunctionActivityId>?

The android.app.appfunctions.AppFunctionActivityIds this app function is associated with.

AppFunctionName

The AppFunctionName associated with this state.

Boolean

Whether this app function can be executed.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

functionName

Added in 1.0.0-alpha11
val functionNameAppFunctionName

The AppFunctionName associated with this state.

isEnabled

Added in 1.0.0-alpha11
val isEnabledBoolean

Whether this app function can be executed.

This can be false if: