binderServerLifecycle method

Future<int?> binderServerLifecycle()

Handle for the connected server's lifecycle Binder.

Some privileged Binder APIs accept an owner or death token so the remote process can release resources when the owner goes away. Pass this Binder to bind those resources to the current server process.

It exposes no operations of its own: only binderPing, binderIsAlive and binderClose work on it, and its identity is stable only for as long as this server process lives. Take a fresh handle after every PrivKitPlatform.serverState change.

Returns null when no server is connected.

Implementation

Future<int?> binderServerLifecycle() {
  throw UnimplementedError(
    'binderServerLifecycle() has not been implemented.',
  );
}