setBackgroundHandler method
This call is required to receive background notifications.
backgroundHandler
is a top level function which will be invoked by Android
Implementation
Future<void> setBackgroundHandler(final Function backgroundHandler) async {
final callback = PluginUtilities.getCallbackHandle(backgroundHandler)!;
final handle = callback.toRawHandle();
await _platform.invokeMethod<void>('setBackgroundHandler', {
'callbackHandle': handle,
});
}