setServiceFunction static method
- Function serviceFunction
set the function being executed periodically by the service
Implementation
static Future<void> setServiceFunction(Function serviceFunction) async {
final serviceFunctionHandle =
PluginUtilities.getCallbackHandle(serviceFunction).toRawHandle();
await _invokeMainChannel(
"setServiceFunctionHandle", <dynamic>[serviceFunctionHandle]);
}