bindUserService method
Binds an app-defined UserService and returns a connection handle.
The underlying Binder cannot cross the platform channel, so Dart cannot call the service's own AIDL methods. The handle exists so Dart can manage the connection lifetime through unbindUserService.
Implementation
@override
Future<int> bindUserService(PrivUserServiceSpec spec) async =>
await methodChannel.invokeMethod<int>('bindUserService', spec.toMap()) ??
-1;