<GCKDeviceManagerDelegate> প্রোটোকল
GCKDeviceManager প্রতিনিধি প্রোটোকল।
অন্যথায় নির্দেশিত না হলে, কলারের প্রতিনিধি পদ্ধতির মধ্যে থেকে প্রতিনিধি GCKDeviceManager অবজেক্টটি ছেড়ে দেওয়া উচিত নয় ।
উত্তরাধিকারসূত্রে <NSObjectNSObject>।
ডিভাইসে একটি সংযোগ স্থাপন করা হলে কল করা হয়।
- 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2022-12-05 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2022-12-05 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"]]