PermissionsState

enum PermissionsState : Enum


The state of permissions to access home data for the requesting client.

Summary

Enum Values

GRANTED

The user has consented to share some subset of home data with the requesting client.

NOT_GRANTED

The user has yet to consent to share any home data with the requesting client.

PERMISSIONS_STATE_UNAVAILABLE

The platform cannot share whether the user has consented or not.

PERMISSIONS_STATE_UNINITIALIZED

Initialization to determine permissions has not completed.

Public functions

PermissionsState
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<PermissionsState>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

GRANTED

val PermissionsState.GRANTEDPermissionsState

The user has consented to share some subset of home data with the requesting client.

NOT_GRANTED

val PermissionsState.NOT_GRANTEDPermissionsState

The user has yet to consent to share any home data with the requesting client.

PERMISSIONS_STATE_UNAVAILABLE

val PermissionsState.PERMISSIONS_STATE_UNAVAILABLEPermissionsState

The platform cannot share whether the user has consented or not. In this case, clients should check the home data available to them to determine whether they should ask the user for permissions.

PERMISSIONS_STATE_UNINITIALIZED

val PermissionsState.PERMISSIONS_STATE_UNINITIALIZEDPermissionsState

Initialization to determine permissions has not completed. Clients should wait for another status.

Public functions

valueOf

fun valueOf(value: String): PermissionsState

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<PermissionsState>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.