public override void onDetach() { if (mDeviceFinder != null) { mDeviceFinder.stop(); mDeviceFinder = null; } base.onDetach(); }
protected internal override void onDestroy() { base.onDestroy(); // Disconnect from AllShare Service if (mDeviceFinder != null) { mDeviceFinder.stop(); } }
public virtual void release() { // Disconnect from remote player if (mPlayer != null) { unregisterListeners(); } // Release the AllShare Service instance. if (mDeviceFinder != null) { mDeviceFinder.setDeviceListener(SmcDevice.TYPE_AVPLAYER, null); mDeviceFinder.stop(); } }