פרוטוקול ההאזנה של GCKDiscoveryManager.
- מאז
- 3.0
יורש את <NSObjectNSObject>.
- (void) didStartDiscoveryForDeviceCategory: |
|
(NSString *) |
deviceCategory |
|
|
optional |
ההתראה הזו מוצגת כשזיהוי של קטגוריית מכשיר מסוימת מתחיל.
- (void) willUpdateDeviceList |
|
|
|
|
optional |
ההתראה הזו מוצגת כשרשימת המכשירים שנמצאו עומדת להתעדכן בדרך כלשהי.
- (void) didUpdateDeviceList |
|
|
|
|
optional |
היא זוהתה כשרשימת המכשירים שנמצאו עודכנה באופן כלשהו.
- (void) didInsertDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
התקבלה קריאה כשמכשיר שהתגלה לאחרונה הוכנס לרשימת המכשירים.
- Parameters
-
device | The device that was inserted. |
index | The list index at which the device was inserted. |
- (void) didUpdateDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
התקבלה קריאה כשמכשיר שהתגלה בעבר מתעדכן.
- Parameters
-
device | The device that was updated. |
index | The list index of the device. |
- (void) didUpdateDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
andMoveToIndex: |
|
(NSUInteger) |
newIndex |
|
|
| |
|
optional |
מתבצעת קריאה כשמכשיר שאותר בעבר עודכן או סדר מחדש בתוך הרשימה.
- Parameters
-
device | The device that was updated. |
index | The previous list index of the device. |
newIndex | The current list index of the device. |
- (void) didRemoveDeviceAtIndex: |
|
(NSUInteger) |
index |
|
|
optional |
התקבלה שיחה כזו כשמכשיר שאותר בעבר עובר למצב אופליין והוסר מרשימת המכשירים.
- Parameters
-
index | The list index of the device that was removed. |
- (void) didRemoveDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
התקבלה שיחה כזו כשמכשיר שאותר בעבר עובר למצב אופליין והוסר מרשימת המכשירים.
זו חלופה ל-didRemoveDeviceAtIndex:. אם שניהם יושמו, תתבצע קריאה לשניהם.
- Parameters
-
device | The device that was removed. |
index | The list index of the device that was removed. |
- מאז
- 4.1
- (void) didHaveDiscoveredDeviceWhenStartingDiscovery |
|
|
|
|
optional |
היא מופעלת כשיש ברשימה כמה מכשירים שזוהו בעבר לפני שתהליך הגילוי מתחיל.
המכשירים האלה עדיין תקפים ותוקפם לא פג מאז שנמצאו בהם בתהליך הגילוי האחרון. ניתן לקבל את הרשימה המלאה של מכשירים שנמצאו בעבר באמצעות deviceCount: ו-deviceAtIndex:.
- מאז
- 4.4.1