Flutter ETS API Documentation v1.0.0
Class: FlutterCallbackInformation
A class representing information for a callback registered using PluginUtilities from dart:ui.
This class holds information about callbacks that can be invoked from native code.
Constructors
Constructor
new FlutterCallbackInformation(
callbackName?,callbackClassName?,callbackLibraryPath?):FlutterCallbackInformation
Constructs a new FlutterCallbackInformation instance.
Parameters
callbackName?
string
The name of the callback function
callbackClassName?
string
The class name containing the callback
callbackLibraryPath?
string
The library path where the callback is defined
Returns
FlutterCallbackInformation
Properties
callbackClassName?
optionalcallbackClassName:string
The class name containing the callback.
callbackLibraryPath?
optionalcallbackLibraryPath:string
The library path where the callback is defined.
callbackName?
optionalcallbackName:string
The name of the callback function.
Methods
init()
init(
callbackName,callbackClassName,callbackLibraryPath):void
Initializes the callback information.
Parameters
callbackName
string
The name of the callback function
callbackClassName
string
The class name containing the callback
callbackLibraryPath
string
The library path where the callback is defined
Returns
void
lookupCallbackInformation()
staticlookupCallbackInformation(handle):FlutterCallbackInformation
Gets callback information for a given handle.
Parameters
handle
number
The handle for the callback, generated by PluginUtilities.getCallbackHandle in
dart:ui
Returns
FlutterCallbackInformation
An instance of FlutterCallbackInformation for the provided handle, or null if not found