MethodChannelXCameraEffectsBackend class
Production XCameraEffectsBackend: ux/camera_effects for commands,
ux/camera_effects/events for status.
The status stream is subscribed to on the first wire call that succeeds, which is also what proves a native handler is registered; the native side answers that activation with the current status, stamped with the last generation Dart sent it.
- Implemented types
Constructors
- MethodChannelXCameraEffectsBackend()
-
Creates a backend bound to the
ux/camera_effectschannels.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ ValueListenable<
XCameraEffectStatus> -
What the native processor is delivering right now, starting at
XCameraEffectStatus.idle.
no setteroverride
- supported → bool
-
Whether this platform family has a native processor. Elsewhere every
method throws XCameraEffectsException with code
unsupported.no setteroverride
Methods
-
available(
) → Future< bool> -
Whether this host can effect frames — the OS version, the GPU profile and
the installed bridge as well as the platform family.
override
-
clear(
) → Future< void> -
Returns the effected track to its own frames, leaving status idle.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setEffect(
String trackId, XCameraEffect effect) → Future< void> -
Applies
effectto the local video tracktrackId, releasing whichever track was effected before.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited