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

Optional MockDeviceKit add-on for flutter_meta_wearables_dat — simulate Meta glasses using the phone's camera for development and testing. Omit in production.

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,
  );

  // `model` defaults to GlassesModel.rayBanMeta; pass any GlassesModel value.
  final uuid = await MetaWearablesDatMockDevice.pairGlasses();
  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.unpairGlasses(uuid);
}
1
likes
160
points
591
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Optional MockDeviceKit add-on for flutter_meta_wearables_dat — simulate Meta glasses using the phone's camera for development and testing. Omit in production.

Repository (GitHub)
View/report issues

License

MIT (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