instance property

IvsPlayerInterface get instance

Getter to retrieve the current instance of IvsPlayerInterface.

Implementation

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

Setter to override the current instance with a new platform-specific implementation.

The method verifies the integrity of the new instance by checking its token.

Implementation

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