setServiceWarningListener method
Sets a block to get called when optional permissions for
the activated services are missing.
Returns stream: List<MoveServiceWarning>
. Invoked in case of configuration
or permission errors.
Implementation
@override
Stream<List<MoveServiceWarning>> setServiceWarningListener() async* {
yield* serviceWarningChannel
.receiveBroadcastStream()
.asyncMap<List<MoveServiceWarning>>((warnings) {
var result = MoveServiceWarning.fromNative(warnings);
return result;
});
}