ByteRTCVirtualBackgroundSource class

Inheritance
  • Object
  • NativeClass
  • ByteRTCVirtualBackgroundSource

Constructors

ByteRTCVirtualBackgroundSource([NativeClassOptions? options])

Properties

$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
sourceColor FutureOr<int?>
@brief The solid color of the background.
The format is 0xAARRGGBB.
getter/setter pair
sourcePath FutureOr<NSString?>
@brief The absolute path of the specified image.
- You can upload a .JPG, .PNG, or .JPEG file. - The image with a resolution higher than 1080p(Full HD) will be rescaled proportionally to fit in the video. - If the image's aspect ratio matches the video's, the image will be rescaled proportionally to fit in the video. - If the image’s aspect ratio doesn't match the video's, the shortest side (either height or width) of the image will be stretched proportionally to match the video. Then the image will be cropped to fill in the video. - The transparent area in the image will be filled with black.
getter/setter pair
sourceType FutureOr<ByteRTCVirtualBackgroundSourceType?>
@brief See ByteRTCVirtualBackgroundSourceType{@link #ByteRTCVirtualBackgroundSourceType} 。
getter/setter pair

Methods

destroy() → void
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
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
updateResource(NativeResource resource) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

codegen_$namespace → dynamic
no setter