예제 #1
0
 public override void onDetach()
 {
     if (mDeviceFinder != null)
     {
         mDeviceFinder.stop();
         mDeviceFinder = null;
     }
     base.onDetach();
 }
예제 #2
0
        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();
            }
        }