BanubaSdkManager class
An entry point to Banuba SDK
Constructors
- BanubaSdkManager({BinaryMessenger? binaryMessenger})
-
Constructor for BanubaSdkManager. The
binaryMessenger
named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
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
-
attachWidget(
int arg_banubaId) → Future< void> - Creates and attaches render processing to a specific view
-
closeCamera(
) → Future< void> - Closes Camera
-
deinitialize(
) → Future< void> - Releases common Banuba SDK resources.
-
discardEditingImage(
) → Future< void> - Discard editing image mode
-
enableFlashlight(
bool arg_enabled) → Future< void> - Enables flashlight. Available only for back camera facing.
-
endEditingImage(
String arg_destImageFilePath) → Future< void> - Ending editing image and save result to destination file
-
evalJs(
String arg_script) → Future< void> - Used for passing specific expressions to interact with an effect.
-
initialize(
List< String?> arg_resourcePath, String arg_clientTokenString, SeverityLevel arg_logLevel) → Future<void> -
Intialize common banuba SDK resources. This must be called before any
other call. Counterpart
deinitialize
exists. -
loadEffect(
String arg_path, bool arg_synchronously) → Future< void> - Loads effect. Invoke this method after startPlayer
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openCamera(
) → Future< void> - Opens Camera
-
processImage(
String arg_sourceFilePath, String arg_destFilePath) → Future< void> - Processes image with applied effect
-
setCameraFacing(
bool arg_front) → Future< void> - Sets camera facing: front, back
-
setZoom(
double arg_zoom) → Future< void> - Sets camera zoom level
-
startEditingImage(
String arg_sourceImageFilePath) → Future< void> - Starts image editing mode
-
startPlayer(
) → Future< void> - Starts render processing. Next, use loadEffect for applying effects
-
startVideoRecording(
String arg_filePath, bool arg_captureAudio, int arg_width, int arg_height) → Future< void> - Start video recording
-
stopPlayer(
) → Future< void> - Stops render processing. Effects will not be applied.
-
stopVideoRecording(
) → Future< void> - Stops video recording
-
takePhoto(
String arg_filePath, int arg_width, int arg_height) → Future< void> - Takes photo from camera
-
toString(
) → String -
A string representation of this object.
inherited
-
unloadEffect(
) → Future< void> - Unloads effect. Invoke this method after startPlayer
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
codec
→ const MessageCodec<
Object?>