binderFromSystemService method
Future<int?>
binderFromSystemService(
- String serviceName, {
- PrivBinderServiceSource source = PrivBinderServiceSource.currentProcess,
Resolves serviceName into a handle Dart can inspect.
Returns null when the service is not available from source.
A Binder cannot cross the platform channel, so Dart only gets an integer handle. Issuing the service's own transactions has to happen in Kotlin, the same way a UserService is called.
Implementation
Future<int?> binderFromSystemService(
String serviceName, {
PrivBinderServiceSource source = PrivBinderServiceSource.currentProcess,
}) {
throw UnimplementedError(
'binderFromSystemService() has not been implemented.',
);
}