public override void onStopped(SmcDeviceFinder deviceFinder) { if (mDeviceFinder == deviceFinder) { mDeviceFinder.setDeviceListener(mType, null); mDeviceFinder.StatusListener = null; mDeviceFinder = null; } }
public override void onDetach() { if (mDeviceFinder != null) { mDeviceFinder.stop(); mDeviceFinder = null; } base.onDetach(); }
/////////////////////////////////////////////////////////////////////////// // These methods handle device finder start hide event. /////////////////////////////////////////////////////////////////////////// public override void onStarted(SmcDeviceFinder deviceFinder, int error) { if (error == Smc.SUCCESS) { mDeviceFinder = deviceFinder; mDeviceFinder.setDeviceListener(mType, this); mDeviceFinder.rescan(); updateButtonCounter(); restoreDevice(); } }
public override void onActivityCreated(Bundle savedInstanceState) { base.onActivityCreated(savedInstanceState); // The service provider needs to be created after device type is set // It could also be created in onStart or onResume, but we the sooner // we create it, the sooner we get devices. SmcDeviceFinder df = new SmcDeviceFinder(Activity); df.StatusListener = this; df.start(); }
public override void onDeviceRemoved(SmcDeviceFinder deviceFinder, SmcDevice smcDevice, int error) { // We aren't interested in individual devices, only in their number updateButtonCounter(); //if current device has been removed if (smcDevice.Id.Equals(mDeviceId)) { Active = false; if (mPickerListener != null) { mPickerListener.onAllShareDisabled(); } } }
public override void onDeviceRemoved(SmcDeviceFinder deviceFinder, SmcDevice smcDevice, int error) { // We aren't interested in individual devices, only in their number updateButtonCounter(); //if current device has been removed if (smcDevice.Id.Equals(mDeviceId)) { Active = false; if (mPickerListener != null) { mPickerListener.onAllShareDisabled(); } } }
/////////////////////////////////////////////////////////////////////////// // These methods handle devices appearing and disappearing in network. /////////////////////////////////////////////////////////////////////////// public override void onDeviceAdded(SmcDeviceFinder deviceFinder, SmcDevice smcDevice) { // We aren't interested in individual devices, only in their number updateButtonCounter(); }
public override void onStopped(SmcDeviceFinder deviceFinder) { if (mDeviceFinder == deviceFinder) { mDeviceFinder.setDeviceListener(mType, null); mDeviceFinder.StatusListener = null; mDeviceFinder = null; } }
/////////////////////////////////////////////////////////////////////////// // These methods handle device finder start hide event. /////////////////////////////////////////////////////////////////////////// public override void onStarted(SmcDeviceFinder deviceFinder, int error) { if (error == Smc.SUCCESS) { mDeviceFinder = deviceFinder; mDeviceFinder.setDeviceListener(mType, this); mDeviceFinder.rescan(); updateButtonCounter(); restoreDevice(); } }
public override void onDetach() { if (mDeviceFinder != null) { mDeviceFinder.stop(); mDeviceFinder = null; } base.onDetach(); }
public override void onActivityCreated(Bundle savedInstanceState) { base.onActivityCreated(savedInstanceState); // The service provider needs to be created after device type is set // It could also be created in onStart or onResume, but we the sooner // we create it, the sooner we get devices. SmcDeviceFinder df = new SmcDeviceFinder(Activity); df.StatusListener = this; df.start(); }
/////////////////////////////////////////////////////////////////////////// // These methods handle devices appearing and disappearing in network. /////////////////////////////////////////////////////////////////////////// public override void onDeviceAdded(SmcDeviceFinder deviceFinder, SmcDevice smcDevice) { // We aren't interested in individual devices, only in their number updateButtonCounter(); }