<GCKDeviceManagerDelegate> प्रोटोकॉल
GCKDeviceManager डेलिगेट प्रोटोकॉल.
अगर किसी और तरीके से बताया नहीं जाता है, तो कॉल करने वाले (कॉलर) को GCKDeviceManager ऑब्जेक्ट, अपने ईमेल खाते का ऐक्सेस देने की प्रक्रिया के अंदर से, उन ऑब्जेक्ट को रिलीज़ नहीं करना चाहिए.
<NSObjectNSObject> इनहेरिट करता है.
|
(void) | - deviceManagerDidConnect: |
| यह तब कॉल किया जाता है, जब डिवाइस के साथ कोई कनेक्शन बन जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didFailToConnectWithError: |
| डिवाइस से कनेक्ट न हो पाने पर कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didDisconnectWithError: |
| डिवाइस से कनेक्शन खत्म हो जाने पर कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didSuspendConnectionWithReason: |
| यह तब कॉल किया जाता है, जब डिवाइस से कनेक्शन कुछ समय के लिए निलंबित कर दिया जाता है. ज़्यादा...
|
|
(void) | - deviceManagerDidResumeConnection:rejoinedApplication: |
| यह तब कॉल किया जाता है, जब पहले से निलंबित डिवाइस का कनेक्शन फिर से चालू हो जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didConnectToCastApplication:sessionID:launchedApplication: |
| यह तब कॉल किया जाता है, जब कोई ऐप्लिकेशन लॉन्च या शामिल हुआ हो. ज़्यादा...
|
|
(void) | - deviceManager:didFailToConnectToApplicationWithError: |
| किसी ऐप्लिकेशन से कनेक्ट होने पर कॉल किया गया. ज़्यादा...
|
|
(void) | - deviceManager:didDisconnectFromApplicationWithError: |
| मौजूदा ऐप्लिकेशन से डिसकनेक्ट होने के बाद कॉल किया जाएगा. ज़्यादा...
|
|
(void) | - deviceManagerDidStopApplication: |
| जब आवेदन बंद करने का अनुरोध पूरा हो जाता है, तब कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didFailToStopApplicationWithError: |
| जब ऐप्लिकेशन बंद करने का अनुरोध पूरा न हो, तब कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didReceiveApplicationMetadata: |
| जब भी चल रहे ऐप्लिकेशन का ऐप्लिकेशन मेटाडेटा बदल जाता है, तब यह कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didReceiveApplicationStatusText: |
| कॉल किया जाता है जब भी वर्तमान में चल रहा ऐप्लिकेशन स्थिति लेख बदल गया हो. ज़्यादा...
|
|
(void) | - deviceManager:volumeDidChangeToLevel:isMuted: |
| जब भी आवाज़ कम या ज़्यादा होगी, तब कॉल किया जाएगा. ज़्यादा...
|
|
(void) | - deviceManager:didReceiveActiveInputStatus: |
| जब भी चालू इनपुट स्टेटस बदलता है, तब इसे कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:didReceiveStandbyStatus: |
| जब भी स्टैंडबाय स्थिति बदलती है, तब कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManager:request:didFailWithError: |
| एसिंक्रोनस ऑपरेशन पूरा न होने पर कॉल किया जाता है. ज़्यादा...
|
|
(void) | - deviceManagerDidPair:withGuestModeDevice: |
| यह तब कॉल किया जाता है, जब डिवाइस पर मेहमान मोड का कनेक्शन इंस्टॉल हो जाता है. ज़्यादा...
|
|
यह तब कॉल किया जाता है, जब डिवाइस के साथ कोई कनेक्शन बन जाता है.
- Parameters
-
deviceManager | The device manager. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didFailToConnectWithError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
डिवाइस से कनेक्ट न हो पाने पर कॉल किया जाता है.
इस कॉलबैक से GCKDeviceManager ऑब्जेक्ट को रिलीज़ करना सुरक्षित है.
- Parameters
-
deviceManager | The device manager. |
error | The error that caused the connection to fail. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didDisconnectWithError: |
|
(NSError *__nullable) |
error |
|
|
| |
|
optional |
डिवाइस से कनेक्शन खत्म हो जाने पर कॉल किया जाता है.
इस कॉलबैक से GCKDeviceManager ऑब्जेक्ट को रिलीज़ करना सुरक्षित है.
- Parameters
-
deviceManager | The device manager. |
error | The error that caused the disconnection; nil if there was no error (for example, an intentional disconnect). |
यह तब कॉल किया जाता है, जब डिवाइस से कनेक्शन कुछ समय के लिए निलंबित कर दिया जाता है.
किसी कनेक्शन के निलंबित होने पर, डिवाइस मैनेजर अपने-आप सही समय पर कनेक्ट करने की कोशिश करेगा. कॉल करने के लिए, ऐप्लिकेशन को खुद को फिर से कनेक्ट करने की कोशिश नहीं करनी चाहिए.
- Parameters
-
deviceManager | The device manager. |
reason | The reason for the suspension. |
- (void) deviceManagerDidResumeConnection: |
|
(GCKDeviceManager *) |
deviceManager |
rejoinedApplication: |
|
(BOOL) |
rejoinedApplication |
|
|
| |
|
optional |
यह तब कॉल किया जाता है, जब पहले से निलंबित डिवाइस का कनेक्शन फिर से चालू हो जाता है.
- Parameters
-
deviceManager | The device manager. |
rejoinedApplication | If a connection had been established to a receiver application at the time of the suspension, this flag indicates whether that application has been successfully re-joined. This value would be NO if, for example, the application was terminated during the time that the device manager was attempting to re-establish its connection to the device. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didConnectToCastApplication: |
|
(GCKApplicationMetadata *) |
applicationMetadata |
sessionID: |
|
(NSString *) |
sessionID |
launchedApplication: |
|
(BOOL) |
launchedApplication |
|
|
| |
|
optional |
यह तब कॉल किया जाता है, जब कोई ऐप्लिकेशन लॉन्च या शामिल हुआ हो.
- Parameters
-
deviceManager | The device manager. |
applicationMetadata | Metadata about the application. |
sessionID | The current application session ID that is active on the receiver. |
launchedApplication | YES if the application was launched as part of the connection, or NO if the application was already running and was joined. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didFailToConnectToApplicationWithError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
किसी ऐप्लिकेशन से कनेक्ट होने पर कॉल किया गया.
- Parameters
-
deviceManager | The device manager. |
error | The error that caused the failure. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didDisconnectFromApplicationWithError: |
|
(NSError *__nullable) |
error |
|
|
| |
|
optional |
मौजूदा ऐप्लिकेशन से डिसकनेक्ट होने के बाद कॉल किया जाएगा.
- Parameters
-
deviceManager | The device manager. |
error | The error that caused the disconnect, or nil if this was a normal disconnect. |
जब आवेदन बंद करने का अनुरोध पूरा हो जाता है, तब कॉल किया जाता है.
- Parameters
-
deviceManager | The device manager. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didFailToStopApplicationWithError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
जब ऐप्लिकेशन बंद करने का अनुरोध पूरा न हो, तब कॉल किया जाता है.
- Parameters
-
deviceManager | The device manager. |
error | The error that caused the failure. |
जब भी चल रहे ऐप्लिकेशन का ऐप्लिकेशन मेटाडेटा बदल जाता है, तब यह कॉल किया जाता है.
- Parameters
-
deviceManager | The device manager. |
metadata | The application metadata. May be nil if no application is currently running. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
didReceiveApplicationStatusText: |
|
(NSString *__nullable) |
applicationStatusText |
|
|
| |
|
optional |
कॉल किया जाता है जब भी वर्तमान में चल रहा ऐप्लिकेशन स्थिति लेख बदल गया हो.
- Parameters
-
deviceManager | The device manager. |
applicationStatusText | The application status text. May be nil if no application is currently running or if the application did not report any status text. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
volumeDidChangeToLevel: |
|
(float) |
volumeLevel |
isMuted: |
|
(BOOL) |
isMuted |
|
|
| |
|
optional |
जब भी आवाज़ कम या ज़्यादा होगी, तब कॉल किया जाएगा.
- Parameters
-
deviceManager | The device manager. |
volumeLevel | The current device volume level. |
isMuted | The current device mute state. |
जब भी चालू इनपुट स्टेटस बदलता है, तब इसे कॉल किया जाता है.
- Parameters
-
deviceManager | The device manager. |
activeInputStatus | The active input status. |
जब भी स्टैंडबाय स्थिति बदलती है, तब कॉल किया जाता है.
- Parameters
-
deviceManager | The device manager. |
standbyStatus | The standby status. |
- (void) deviceManager: |
|
(GCKDeviceManager *) |
deviceManager |
request: |
|
(NSInteger) |
requestID |
didFailWithError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
एसिंक्रोनस ऑपरेशन पूरा न होने पर कॉल किया जाता है.
- Parameters
-
deviceManager | The device manager. |
requestID | The ID of the request that failed. |
error | The error. |
यह तब कॉल किया जाता है, जब डिवाइस पर मेहमान मोड का कनेक्शन इंस्टॉल हो जाता है.
- Parameters
-
deviceManager | The device manager. |
guestModeDevice | The device object for the concrete guest mode device. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2022-12-06 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-12-06 (UTC) को अपडेट किया गया."],[[["The `GCKDeviceManagerDelegate` protocol defines methods that inform your app about the status of Cast devices and Cast sessions."],["These methods provide notifications for connections, disconnections, application launches, volume changes, and errors."],["Your app should implement this protocol to handle Cast-related events."],["The delegate methods are called on the main thread."],["It is important to note that unless specified, the `GCKDeviceManager` object should not be released from within a delegate method."]]],["The `GCKDeviceManagerDelegate` protocol manages interactions with Cast devices. Key actions include handling device connections (successful or failed), disconnections, and suspensions. It manages application connections, launches, failures, and disconnections. It also reports changes in application metadata, status text, volume, active input, and standby status. Additionally, it notifies when application stop requests succeed or fail, when an asynchronous operation fails and when a guest mode connection is established. The delegating object should not be released from within most delegate methods.\n"]]