data class MockDeviceKitConfig(val initiallyRegistered: Boolean = true, val initialPermissionsGranted: Boolean = true)
MockDeviceKitConfig
(
initiallyRegistered
, initialPermissionsGranted
)
|
Signature
constructor(initiallyRegistered: Boolean = true, initialPermissionsGranted: Boolean = true) Parameters initiallyRegistered: Boolean
Whether to start in the Registered state when MockDeviceKitInterface.enable is called. Defaults to true. When false, registration state starts as Unavailable and can be transitioned via Wearables.startRegistration.
initialPermissionsGranted: Boolean
Whether Permission.CAMERA and Permission.MICROPHONE start as PermissionStatus.Granted when MockDeviceKitInterface.enable is called. Defaults to true. Only meaningful when MockDeviceKitConfig is true — an unregistered device always has permissions denied regardless of this flag.
Returns MockDeviceKitConfig |
initiallyRegistered
: Boolean
[Get] |
Whether to start in the Registered state when MockDeviceKitInterface.enable is called. Defaults to true. When false, registration state starts as Unavailable and can be transitioned via Wearables.startRegistration.
Signature
val initiallyRegistered: Boolean = true |
initialPermissionsGranted
: Boolean
[Get] |
Whether Permission.CAMERA and Permission.MICROPHONE start as PermissionStatus.Granted when MockDeviceKitInterface.enable is called. Defaults to true. Only meaningful when MockDeviceKitConfig.initiallyRegistered is true — an unregistered device always has permissions denied regardless of this flag.
Signature
val initialPermissionsGranted: Boolean = true |