protocol MockDeviceKitInterface: Sendable
isEnabled
: Bool
[Get] |
Whether MockDeviceKit is currently enabled.
|
pairedDevices
: [MockDevice]
[Get] |
The list of all currently paired mock devices.
|
permissions
: MockPermissions
[Get] |
Interface for configuring mock permission behavior.
|
disable
()
|
Disables MockDeviceKit, restoring real providers and unpairing all mock devices.
Signature
public func disable() |
enable
(
config
)
|
Enables MockDeviceKit, injecting fake providers into the registration and device layers.
Safe to call regardless of whether Wearables.configure() has been called — MockDeviceKit will auto-configure Wearables if needed.
Signature
public func enable( config: MockDeviceKitConfig) Parameters |
pairRaybanMeta
()
|
Pairs a simulated Ray-Ban Meta device. MockDeviceKit must be enabled before calling this method.
Signature
public func pairRaybanMeta() -> MockRaybanMeta |
unpairDevice
(
device
)
|
Unpairs a simulated device.
Signature
public func unpairDevice(_ device: MockDevice) Parameters |