flutter_meta_wearables_dat_mock_device 0.4.0 copy "flutter_meta_wearables_dat_mock_device: ^0.4.0" to clipboard
flutter_meta_wearables_dat_mock_device: ^0.4.0 copied to clipboard

Optional MockDeviceKit add-on for flutter_meta_wearables_dat — simulates a Ray-Ban Meta device using the phone's camera. Pull this in only for development and testing; production apps should omit it t [...]

example/README.md

Example #

flutter_meta_wearables_dat_mock_device is the mock-device add-on for flutter_meta_wearables_dat. The end-to-end example — exercising mock pairing, power-on / don, camera-feed override, streaming, and photo capture against a simulated Ray-Ban Meta — lives in the core plugin's repo:

See flutter_meta_wearables_dat/example.

For a minimal usage snippet, see the package README.

Quick reference #

import 'package:flutter_meta_wearables_dat/flutter_meta_wearables_dat.dart';
import 'package:flutter_meta_wearables_dat_mock_device/flutter_meta_wearables_dat_mock_device.dart';

Future<void> main() async {
  await MetaWearablesDatMockDevice.configure(
    initiallyRegistered: true,
    initialPermissionsGranted: true,
  );

  final uuid = await MetaWearablesDatMockDevice.pairRayBanMeta();
  await MetaWearablesDatMockDevice.powerOn(uuid!);
  await MetaWearablesDatMockDevice.don(uuid);
  await MetaWearablesDatMockDevice.setCameraFacing(uuid, CameraFacing.back);

  // Streaming + capture flow through the core plugin against the mock UUID.
  final textureId = await MetaWearablesDat.startStreamSession(uuid);
  // ... render with `Texture(textureId: textureId)` ...
  await MetaWearablesDat.stopStreamSession(uuid);

  await MetaWearablesDatMockDevice.unpairRayBanMeta(uuid);
}
1
likes
0
points
591
downloads

Publisher

unverified uploader

Weekly Downloads

Optional MockDeviceKit add-on for flutter_meta_wearables_dat — simulates a Ray-Ban Meta device using the phone's camera. Pull this in only for development and testing; production apps should omit it to avoid linking AVFoundation/Camera symbols.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_meta_wearables_dat_mock_device

Packages that implement flutter_meta_wearables_dat_mock_device