0
在<GCKDeviceManagerDelegate>
Protocol我看到兩個非常相似的方法:GCKDeviceManager協議 - 是什麼didDisconnectWithError之間的區別:和didDisconnectFromApplicationWithError :?
/**
* Called when the connection to the device has been terminated. It is safe to release the
* GCKDeviceManager object from within this callback.
*
* @param deviceManager The device manager.
* @param error The error that caused the disconnection; nil if there was no error (e.g. intentional
* disconnection).
*/
- (void)deviceManager:(GCKDeviceManager *)deviceManager
didDisconnectWithError:(NSError *)error;
和
/**
* Called when disconnected from the current application.
*
* @param deviceManager The device manager.
* @param error The error that caused the disconnect, or <code>nil</code> if this was a normal
* disconnect.
*/
- (void)deviceManager:(GCKDeviceManager *)deviceManager
didDisconnectFromApplicationWithError:(NSError *)error;
正所謂deviceManager:didDisconnectWithError:
如果Chromecast的接收器斷開連接或斷開連接的應用程序,並deviceManager:didDisconnectFromApplicationWithError:
叫當應用程序試圖從Chromecast接收器斷開連接?
什麼是用例時,各委託方法將被稱爲?