MetaWearables class
Primary entry point for the Meta Wearables Flutter plugin.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
devices
→ Stream<
List< WearableDevice> > -
no setter
-
registrationState
→ Stream<
RegistrationState> -
no setter
-
streamStateChanges
→ Stream<
StreamState> -
Stream of stream state changes (starting, streaming, stopped, etc.)
no setter
Static Methods
-
addDisplay(
String sessionId) → Future< String> -
addStream(
String sessionId, StreamConfiguration config) → Future< String> -
capturePhoto(
String streamId) → Future< PhotoData> - Capture a photo from an active stream. Returns the photo data directly.
-
checkCameraPermission(
) → Future< PermissionStatus> -
createSession(
) → Future< String> -
handleUrl(
String url) → Future< void> - Handle the callback URL from the Meta AI app. Call this from your App's deep link handler.
-
initialize(
) → Future< void> -
removeDisplay(
String sessionId, String displayId) → Future< void> -
requestCameraPermission(
) → Future< PermissionStatus> -
routeAudioToBluetooth(
bool enableHFP) → Future< bool> -
sendDisplayContent(
String displayId, String title, String body) → Future< void> -
startCameraStream(
{StreamConfiguration config = const StreamConfiguration()}) → Future< CameraStream> - Create session, add stream, and start it in one call. Returns a CameraStream with frame and state streams.
-
startRegistration(
) → Future< void> -
startSession(
String sessionId) → Future< void> -
startStream(
String streamId) → Future< void> -
startUnregistration(
) → Future< void> -
stopCameraStream(
) → Future< void> - Stop the convenience camera stream.
-
stopSession(
String sessionId) → Future< void> -
stopStream(
String streamId) → Future< void>