Ringkasan
Metode yang akan diganti dan dipanggil hanya oleh subclass GCKSession.
- Sejak
- 3,0
Ringkasan Metode Instance | |
(void) | - start |
Memulai sesi. Lainnya... | |
(void) | - endAndStopCasting: |
Mengakhiri sesi. Lainnya... | |
(void) | - suspendWithReason: |
Menangguhkan sesi karena alasan yang ditentukan. Lainnya... | |
(void) | - resume |
Melanjutkan sesi. Lainnya... | |
(void) | - notifyDidStartWithSessionID: |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah dimulai. Lainnya... | |
(void) | - notifyDidFailToStartWithError: |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi gagal dimulai. Lainnya... | |
(void) | - notifyDidResume |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah dilanjutkan. Lainnya... | |
(void) | - notifyDidSuspendWithReason: |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah ditangguhkan. Lainnya... | |
(void) | - notifyDidEndWithError: |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah berakhir. Lainnya... | |
(void) | - notifyDidReceiveDeviceVolume:muted: |
Dipanggil oleh subclass untuk memberi tahu framework bahwa volume perangkat dan status bisu yang diperbarui telah diterima dari perangkat. Lainnya... | |
(void) | - notifyDidReceiveDeviceStatus: |
Dipanggil oleh subclass untuk memberi tahu framework bahwa status yang diperbarui telah diterima dari perangkat. Lainnya... | |
Detail Metode
- (void) start |
Memulai sesi.
Ini adalah operasi asinkron. Harus diganti oleh subclass.
Memperluas class GCKSession.
- (void) endAndStopCasting: | (BOOL) | stopCasting |
Mengakhiri sesi.
Ini adalah operasi asinkron. Harus diganti oleh subclass.
- Parameters
-
stopCasting Whether to stop casting content to the receiver.
Memperluas class GCKSession.
- (void) suspendWithReason: | (GCKConnectionSuspendReason) | reason |
Menangguhkan sesi karena alasan yang ditentukan.
Ini adalah operasi asinkron. Harus diganti oleh subclass.
Memperluas class GCKSession.
- (void) resume |
Melanjutkan sesi.
Ini adalah operasi asinkron. Harus diganti oleh subclass.
Memperluas class GCKSession.
- (void) notifyDidStartWithSessionID: | (NSString *) | sessionID |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah dimulai.
- Parameters
-
sessionID The session's unique ID.
Memperluas class GCKSession.
- (void) notifyDidFailToStartWithError: | (NSError *) | error |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi gagal dimulai.
- Parameters
-
error The error that occurred.
Memperluas class GCKSession.
- (void) notifyDidResume |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah dilanjutkan.
Memperluas class GCKSession.
- (void) notifyDidSuspendWithReason: | (GCKConnectionSuspendReason) | reason |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah ditangguhkan.
- Parameters
-
reason The reason for the suspension.
Memperluas class GCKSession.
- (void) notifyDidEndWithError: | (NSError *__nullable) | error |
Dipanggil oleh subclass untuk memberi tahu framework bahwa sesi telah berakhir.
- Parameters
-
error The error that caused the session to end, if any. Should be nil
if the session was ended intentionally.
Memperluas class GCKSession.
- (void) notifyDidReceiveDeviceVolume: | (float) | volume | |
muted: | (BOOL) | muted | |
Dipanggil oleh subclass untuk memberi tahu framework bahwa volume perangkat dan status bisu yang diperbarui telah diterima dari perangkat.
- Parameters
-
volume The device's current volume. Must be in the range [0, 1.0]; muted The device's current mute state.
Memperluas class GCKSession.
- (void) notifyDidReceiveDeviceStatus: | (NSString *__nullable) | statusText |
Dipanggil oleh subclass untuk memberi tahu framework bahwa status yang diperbarui telah diterima dari perangkat.
- Parameters
-
statusText The new status.
Memperluas class GCKSession.