val mockKit = MockDeviceKit.getInstance(context) val glasses = mockKit.pairRaybanMeta() // Simulate device lifecycle glasses.powerOn() glasses.unfold() glasses.don() // Set up camera mock data glasses.services.camera.setCameraFeed(videoUri)
interface MockRaybanMeta : MockDisplaylessGlasses
deviceIdentifier
: DeviceIdentifier
[Get] |
Returns the device identifier for this mock device.
Signature
abstract val deviceIdentifier: DeviceIdentifier |
services
: MockDisplaylessGlassesServices
[Get] |
Container for services available on this device.
Signature
abstract val services: MockDisplaylessGlassesServices |
doff
()
|
Simulates taking off (doffing) the device, triggering removal detection events.
Signature
abstract fun doff() |
don
()
|
Simulates putting on (donning) the device, triggering wear detection events.
Signature
abstract fun don() |
fold
()
|
Simulates folding the glasses into a closed position.
This triggers hinge state change events that the SDK observes.
Signature
abstract fun fold() |
powerOff
()
|
Powers off the mock device, simulating device shutdown.
Signature
abstract fun powerOff() |
powerOn
()
|
Powers on the mock device, simulating device startup.
Signature
abstract fun powerOn() |
unfold
()
|
Simulates unfolding the glasses into an open position.
This triggers hinge state change events that the SDK observes.
Signature
abstract fun unfold() |