instance property

ShizukuApiPlatform get instance

The default instance of ShizukuApiPlatform to use.

Defaults to MethodChannelShizukuApi.

Implementation

static ShizukuApiPlatform get instance => _instance;
set instance (ShizukuApiPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends ShizukuApiPlatform when they register themselves.

Implementation

static set instance(ShizukuApiPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}