BanubaSdkManager class
An entry point to Banuba SDK
Constructors
- BanubaSdkManager.new({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
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
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attachWidget(
int 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 enabled) → Future< void> - Enables flashlight. Available only for back camera facing.
-
endEditingImage(
String destImageFilePath) → Future< void> - Ending editing image and save result to destination file
-
evalJs(
String script) → Future< void> - Used for passing specific expressions to interact with an effect.
-
initialize(
List< String> resourcePath, String clientTokenString, SeverityLevel logLevel) → Future<void> -
Intialize common banuba SDK resources. This must be called before any
other call. Counterpart
deinitialize
exists. -
loadEffect(
String path, bool 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
-
pauseVideoRecording(
) → Future< void> - Pause screen recording. @see resumeVideoRecoding, startVideoRecording
-
processImage(
String sourceFilePath, String destFilePath) → Future< void> - Processes image with applied effect
-
reloadConfig(
String script) → Future< void> - Used for passing specific expressions to interact with an effect. @see https://docs.banuba.com/far-sdk/effects/prefabs/overview
-
resumeVideoRecording(
) → Future< void> - Resume screen recording after it was paused. @see pauseVideoRecording, startVideoRecording
-
setCameraFacing(
bool front) → Future< void> - Sets camera facing: front, back
-
setZoom(
double zoom) → Future< void> - Sets camera zoom level
-
startEditingImage(
String sourceImageFilePath) → Future< void> - Starts image editing mode
-
startPlayer(
) → Future< void> - Starts render processing. Next, use loadEffect for applying effects
-
startVideoRecording(
String filePath, bool captureAudio, int width, int height, [bool frontCameraMirror = true]) → Future< void> - Start video recording @param frontCameraMirror is optional, applies for iOS only.
-
stopPlayer(
) → Future< void> - Stops render processing. Effects will not be applied.
-
stopVideoRecording(
) → Future< void> - Stops video recording
-
takePhoto(
String filePath, int width, int 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
-
pigeonChannelCodec
→ const MessageCodec<
Object?>