ByteRTCVideoSnapshotCallbackDelegate class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- ByteRTCVideoSnapshotCallbackDelegate
Properties
-
$instance
↔ dynamic
-
getter/setter pairinherited
-
$resource
→ NativeResource
-
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ready
→ Future<void>
-
Whether the instance is initialized
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy()
→ void
-
inherited
-
emit(String name, List args)
→ dynamic
-
inherited
-
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta])
→ Future<T>
-
Call instance method
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onTakeLocalSnapshotResult$videoSource$image$errorCode(NSInteger taskId, ByteRTCVideoSource videoSource, dynamic image, NSInteger errorCode)
→ FutureOr<void>
-
@detail callback
@brief Receives the callback after calling takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot}.
@param taskId The index for the snapshot, the same as the return value of takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot}.
@param videoSource See ByteRTCVideoSource{@link #ByteRTCVideoSource}.
@param image The snapshot image. If the snapshot task fails, the value is
null.
@param errorCode Error code:
- 0: Success.
- -1: Failure. Fails to generate the image.
- -2: Failure. The stream is invalid.
- -3: Failure. snapshot timeout, default 1s.
-
onTakeRemoteSnapshotResult$streamId$info$image$errorCode(NSInteger taskId, NSString streamId, ByteRTCStreamInfo info, dynamic image, NSInteger errorCode)
→ FutureOr<void>
-
@detail callback
@brief Receives the callback after calling takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback}.
@param taskId The index for the remote snapshot, the same as the return value of takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback}.
@param streamId The ID of the remote video stream.
@param info See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}.
@param image The snapshot image. If the snapshot task fails, the value is
null.
@param errorCode Error code:
- 0: Success.
- -1: Failure. Fails to generate the image.
- -2: Failure. The stream is invalid.
- -3: Failure. snapshot timeout, default 1s.
-
registerEvent(String name, dynamic method)
→ void
-
inherited
-
sendInstanceGet<T>(String property)
→ Future<T>
-
Get instance property
inherited
-
sendInstancePropertiesGet(dynamic nativeClass)
→ Future<Map<String, dynamic>>
-
Get instance properties
inherited
-
sendInstanceSet(String property, dynamic value)
→ Future<void>
-
Set instance property
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateInstance(dynamic instance)
→ void
-
inherited
-
updateResource(NativeResource resource)
→ void
-
inherited