pairDevice static method
Pair a mock Ray-Ban Meta glasses device.
The device is automatically powered on and donned (worn), so it appears as a connected, active device immediately.
Returns a MockDevice you can use to set camera feeds, simulate gestures, and control device state.
Implementation
static Future<MockDevice> pairDevice() async {
final deviceId = await _channel.invokeMethod<String>('mock_pairDevice');
if (deviceId == null) {
throw StateError('Mock device pairing failed — is MockDeviceKit enabled?');
}
return MockDevice._(deviceId);
}