package com.brentvatne.react /** * Plugin interface definition for RNV plugins that does not have dependencies nor logic specific to any player * It is the base interface for all RNV plugins */ interface RNVPlugin { /** * Function called when a new player is created * @param id: a random string identifying the player * @param player: the instantiated player reference */ fun onInstanceCreated(id: String, player: Any) /** * Function called when a player should be destroyed * when this callback is called, the plugin shall free all * resources and release all reference to Player object * @param id: a random string identifying the player * @param player: the player to release */ fun onInstanceRemoved(id: String, player: Any) }