Protokol <GCKSessionManagerListener>

Referensi Protokol <GCKSessionManagerListener>

Ringkasan

Protokol pemroses GCKSessionManager.

Semua metode protokol bersifat opsional. Semua metode notifikasi tersedia dalam dua jenis: metode yang dipanggil untuk setiap jenis sesi dan metode yang dipanggil khusus untuk sesi Cast.

Pemroses dipanggil sesuai urutan pendaftarannya. Instance GCKSessionManagerListener yang didaftarkan oleh komponen framework itu sendiri (seperti GCKUIMediaController), akan selalu dipanggil setelah instance yang didaftarkan oleh aplikasi untuk callback sessionManager:willStartSession: (GCKSessionManagerListener-p), sessionManager:willStartCastSession: (GCKSessionManagerListener-p), sessionManager:willResumeSession: (GCKSessionManagerListener-p), dan sessionManager:willResumeCastSession: (GCKSessionManagerListener-p); dan sebelum instance yang didaftarkan oleh aplikasi untuk semua callback yang tersisa.

Since
3,0

Mewarisi <NSObjectNSObject>.

Ringkasan Metode Instance

(void) - sessionManager:willStartSession:
 Dipanggil saat sesi akan dimulai. Selengkapnya...
 
(void) - sessionManager:didStartSession:
 Dipanggil saat sesi berhasil dimulai. Selengkapnya...
 
(void) - sessionManager:willStartCastSession:
 Dipanggil saat sesi Transmisi akan dimulai. Selengkapnya...
 
(void) - sessionManager:didStartCastSession:
 Dipanggil saat sesi Transmisi berhasil dimulai. Selengkapnya...
 
(void) - sessionManager:willEndSession:
 Dipanggil saat sesi akan segera berakhir, baik berdasarkan permintaan atau karena error. Selengkapnya...
 
(void) - sessionManager:didEndSession:withError:
 Dipanggil saat sesi berakhir, baik berdasarkan permintaan atau karena error. Selengkapnya...
 
(void) - sessionManager:willEndCastSession:
 Dipanggil saat sesi Cast akan segera berakhir, baik berdasarkan permintaan atau karena error. Selengkapnya...
 
(void) - sessionManager:didEndCastSession:withError:
 Dipanggil saat sesi Cast berakhir, baik berdasarkan permintaan atau karena error. Selengkapnya...
 
(void) - sessionManager:didFailToStartSession:withError:
 Dipanggil saat sesi gagal dimulai. Selengkapnya...
 
(void) - sessionManager:didFailToStartCastSession:withError:
 Dipanggil saat sesi Cast gagal dimulai. Selengkapnya...
 
(void) - sessionManager:didSuspendSession:withReason:
 Dipanggil saat sesi telah ditangguhkan. Selengkapnya...
 
(void) - sessionManager:didSuspendCastSession:withReason:
 Dipanggil saat sesi Cast ditangguhkan. Selengkapnya...
 
(void) - sessionManager:willResumeSession:
 Dipanggil saat sesi akan dilanjutkan. Selengkapnya...
 
(void) - sessionManager:didResumeSession:
 Dipanggil saat sesi berhasil dilanjutkan. Selengkapnya...
 
(void) - sessionManager:willResumeCastSession:
 Dipanggil saat sesi Transmisi akan dilanjutkan. Selengkapnya...
 
(void) - sessionManager:didResumeCastSession:
 Dipanggil saat sesi Transmisi berhasil dilanjutkan. Selengkapnya...
 
(void) - sessionManager:session:didUpdateDevice:
 Dipanggil saat perangkat yang dikaitkan dengan sesi ini telah berubah sedemikian rupa (misalnya, nama yang ramah telah berubah). Selengkapnya...
 
(void) - sessionManager:session:didReceiveDeviceVolume:muted:
 Dipanggil saat volume perangkat yang diperbarui dan status bisukan untuk sesi telah diterima. Selengkapnya...
 
(void) - sessionManager:castSession:didReceiveDeviceVolume:muted:
 Dipanggil saat volume perangkat yang diperbarui dan status bisukan untuk sesi Cast telah diterima. Selengkapnya...
 
(void) - sessionManager:session:didReceiveDeviceStatus:
 Dipanggil saat status perangkat yang diperbarui untuk sebuah sesi telah diterima. Selengkapnya...
 
(void) - sessionManager:castSession:didReceiveDeviceStatus:
 Dipanggil saat status perangkat yang diperbarui untuk sesi Transmisi telah diterima. Selengkapnya...
 

Detail Metode

- (void) sessionManager: (GCKSessionManager *)  sessionManager
willStartSession: (GCKSession *)  session 
optional

Dipanggil saat sesi akan dimulai.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didStartSession: (GCKSession *)  session 
optional

Dipanggil saat sesi berhasil dimulai.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willStartCastSession: (GCKCastSession *)  session 
optional

Dipanggil saat sesi Transmisi akan dimulai.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didStartCastSession: (GCKCastSession *)  session 
optional

Dipanggil saat sesi Transmisi berhasil dimulai.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willEndSession: (GCKSession *)  session 
optional

Dipanggil saat sesi akan segera berakhir, baik berdasarkan permintaan atau karena error.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didEndSession: (GCKSession *)  session
withError: (NSError *__nullable)  error 
optional

Dipanggil saat sesi berakhir, baik berdasarkan permintaan atau karena error.

Parameters
sessionManagerThe session manager.
sessionThe session.
errorThe error, if any; otherwise nil.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willEndCastSession: (GCKCastSession *)  session 
optional

Dipanggil saat sesi Cast akan segera berakhir, baik berdasarkan permintaan atau karena error.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didEndCastSession: (GCKCastSession *)  session
withError: (NSError *__nullable)  error 
optional

Dipanggil saat sesi Cast berakhir, baik berdasarkan permintaan atau karena error.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
errorThe error, if any; otherwise nil.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didFailToStartSession: (GCKSession *)  session
withError: (NSError *)  error 
optional

Dipanggil saat sesi gagal dimulai.

Parameters
sessionManagerThe session manager.
sessionThe session.
errorThe error.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didFailToStartCastSession: (GCKCastSession *)  session
withError: (NSError *)  error 
optional

Dipanggil saat sesi Cast gagal dimulai.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
errorThe error.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didSuspendSession: (GCKSession *)  session
withReason: (GCKConnectionSuspendReason reason 
optional

Dipanggil saat sesi telah ditangguhkan.

Parameters
sessionManagerThe session manager.
sessionThe session.
reasonThe reason for the suspension.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didSuspendCastSession: (GCKCastSession *)  session
withReason: (GCKConnectionSuspendReason reason 
optional

Dipanggil saat sesi Cast ditangguhkan.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
reasonThe reason for the suspension.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willResumeSession: (GCKSession *)  session 
optional

Dipanggil saat sesi akan dilanjutkan.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didResumeSession: (GCKSession *)  session 
optional

Dipanggil saat sesi berhasil dilanjutkan.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willResumeCastSession: (GCKCastSession *)  session 
optional

Dipanggil saat sesi Transmisi akan dilanjutkan.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didResumeCastSession: (GCKCastSession *)  session 
optional

Dipanggil saat sesi Transmisi berhasil dilanjutkan.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
session: (GCKSession *)  session
didUpdateDevice: (GCKDevice *)  device 
optional

Dipanggil saat perangkat yang dikaitkan dengan sesi ini telah berubah sedemikian rupa (misalnya, nama yang ramah telah berubah).

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
deviceThe updated device object.
Since
3,2
- (void) sessionManager: (GCKSessionManager *)  sessionManager
session: (GCKSession *)  session
didReceiveDeviceVolume: (float)  volume
muted: (BOOL)  muted 
optional

Dipanggil saat volume perangkat yang diperbarui dan status bisukan untuk sesi telah diterima.

Parameters
sessionManagerThe session manager.
sessionThe session.
volumeThe current volume, in the range [0.0, 1.0].
mutedThe current mute state.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
castSession: (GCKCastSession *)  session
didReceiveDeviceVolume: (float)  volume
muted: (BOOL)  muted 
optional

Dipanggil saat volume perangkat yang diperbarui dan status bisukan untuk sesi Cast telah diterima.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
volumeThe current volume, in the range [0.0, 1.0].
mutedThe current mute state.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
session: (GCKSession *)  session
didReceiveDeviceStatus: (NSString *__nullable)  statusText 
optional

Dipanggil saat status perangkat yang diperbarui untuk sebuah sesi telah diterima.

Parameters
sessionManagerThe session manager.
sessionThe session.
statusTextThe new device status text.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
castSession: (GCKCastSession *)  session
didReceiveDeviceStatus: (NSString *__nullable)  statusText 
optional

Dipanggil saat status perangkat yang diperbarui untuk sesi Transmisi telah diterima.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
statusTextThe new device status text.