instance property
JpushHarmonySdkPlatform
get
instance
The default instance of JpushHarmonySdkPlatform to use.
Defaults to MethodChannelJpushHarmonySdk.
Implementation
static JpushHarmonySdkPlatform get instance => _instance;
set
instance
(JpushHarmonySdkPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends JpushHarmonySdkPlatform when they register themselves.
Implementation
static set instance(JpushHarmonySdkPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}