GCKDevice ক্লাস
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
রিসিভার ডিভাইসের প্রতিনিধিত্বকারী একটি বস্তু।
উত্তরাধিকারসূত্রে NSObject, <NSCopying>, এবং <NSSecureCoding>।
- (BOOL) isSameDeviceAs: |
|
(const GCKDevice *) |
other |
|
এই ডিভাইসটি অন্যটির মতো একই ভৌত ডিভাইসটিকে নির্দেশ করে কিনা তা পরীক্ষা করে।
উভয় GCKDevice অবজেক্টের একই বিভাগ, ডিভাইস আইডি, IP ঠিকানা, পরিষেবা পোর্ট এবং প্রোটোকল সংস্করণ থাকলে YES
প্রদান করে।
- (BOOL) hasCapabilities: |
|
(GCKDeviceCapabilities) |
deviceCapabilities |
|
ডিভাইসটি প্রদত্ত সমস্ত ক্ষমতা সমর্থন করলে YES
রিটার্ন করে।
- Parameters
-
deviceCapabilities | A bitwise-OR of one or more of the GCKDeviceCapabilities constants. |
- (void) setAttribute: |
|
(NSObject< NSSecureCoding > *) |
attribute |
forKey: |
|
(NSString *) |
key |
|
|
| |
বস্তুতে একটি নির্বিচারে বৈশিষ্ট্য সেট করে।
নন-কাস্ট ডিভাইসের জন্য ডিভাইস-নির্দিষ্ট তথ্য সঞ্চয় করতে কাস্টম ডিভাইস প্রদানকারীরা ব্যবহার করতে পারে।
- Parameters
-
attribute | The attribute value, which must be key-value coding compliant, and cannot be nil . |
key | The key that identifies the attribute. The key is an arbitrary string. It cannot be nil . |
- (nullable NSObject<NSSecureCoding> *) attributeForKey: |
|
(NSString *) |
key |
|
বস্তুর মধ্যে একটি বৈশিষ্ট্য দেখায়।
- Parameters
-
key | The key that identifies the attribute. The key is an arbitrary string. It cannot be nil . |
- রিটার্নস
- অ্যাট্রিবিউটের মান, অথবা যদি এমন কোনো অ্যাট্রিবিউট না থাকে তাহলে
nil
।
- (void) removeAttributeForKey: |
|
(NSString *) |
key |
|
বস্তু থেকে একটি বৈশিষ্ট্য অপসারণ.
- Parameters
-
key | The key that identifies the attribute. The key is an arbitrary string. It cannot be nil . |
- (void) removeAllAttributes |
|
|
|
বস্তু থেকে সমস্ত বৈশিষ্ট্য মুছে ফেলে।
+ (NSString *) deviceCategoryForDeviceUniqueID: |
|
(NSString *) |
deviceUniqueID |
|
একটি ডিভাইসের অনন্য ID থেকে ডিভাইস বিভাগটি বের করে।
- Deprecated:
- networkAddress ব্যবহার করুন ডিভাইসের IPv4 ঠিকানা, ডট-নোটেশনে। নেটওয়ার্ক অনুরোধ করার সময় ব্যবহার করা হয়। এটি একটি খালি স্ট্রিং হবে GCKDevice অবজেক্টের জন্য যা একটি IPv6 ঠিকানা দিয়ে তৈরি করা হয়েছে।
ডিভাইসের আইপি ঠিকানা।
নেটওয়ার্ক অনুরোধ করার সময় ব্যবহার করা হয়।
- থেকে
- 4.2
ডিভাইসের জন্য একটি অনন্য শনাক্তকারী।
- (NSString*) friendlyName |
|
read write nonatomic copy |
ডিভাইসটির বন্ধুত্বপূর্ণ নাম।
এটি একটি ব্যবহারকারী-অর্পণযোগ্য নাম যেমন "লিভিং রুম"।
|
read write nonatomic copy |
|
read write nonatomic copy |
ডিভাইসের জন্য আইকন ধারণকারী GCKImage অবজেক্টের একটি অ্যারে।
- (GCKDeviceStatus) status |
|
read write nonatomic assign |
ডিভাইসটির স্ট্যাটাস যেটি সম্প্রতি স্ক্যান করা হয়েছিল।
|
read write nonatomic copy |
বর্তমানে চলমান রিসিভার অ্যাপ্লিকেশন দ্বারা রিপোর্ট করা স্ট্যাটাস টেক্সট, যদি থাকে।
- (NSString*) deviceVersion |
|
read write nonatomic copy |
ডিভাইসের প্রোটোকল সংস্করণ।
- (BOOL) isOnLocalNetwork |
|
read nonatomic assign |
হ্যাঁ যদি এই ডিভাইসটি স্থানীয় নেটওয়ার্কে থাকে।
ডিভাইস বিভাগ, একটি স্ট্রিং যা অনন্যভাবে ডিভাইসের ধরন সনাক্ত করে।
কাস্ট ডিভাইসে kGCKCastDeviceCategory এর একটি বিভাগ রয়েছে।
এই ডিভাইসের জন্য একটি বিশ্বব্যাপী অনন্য আইডি।
এটি category এবং deviceID বৈশিষ্ট্যগুলির একটি সংমিশ্রণ।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eGCKDevice\u003c/code\u003e class represents a Cast receiver device on the network, providing information such as its name, IP address, capabilities, and status.\u003c/p\u003e\n"],["\u003cp\u003eIt offers methods to check device capabilities, compare devices, and manage device-specific attributes.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access properties like \u003ccode\u003efriendlyName\u003c/code\u003e, \u003ccode\u003emodelName\u003c/code\u003e, \u003ccode\u003edeviceID\u003c/code\u003e, and \u003ccode\u003eicons\u003c/code\u003e to identify and interact with the device.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGCKDevice\u003c/code\u003e class helps in discovering and managing Cast-enabled devices for seamless integration with Cast applications.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003enetworkAddress\u003c/code\u003e, \u003ccode\u003eservicePort\u003c/code\u003e and \u003ccode\u003edeviceVersion\u003c/code\u003e for handling network communication and device identification.\u003c/p\u003e\n"]]],["The GCKDevice class represents a receiver device, inheriting from NSObject. Key actions include: checking if a device is the same as another (`isSameDeviceAs:`), verifying device capabilities (`hasCapabilities:`), setting, retrieving, and removing attributes (`setAttribute:forKey:`, `attributeForKey:`, `removeAttributeForKey:`, `removeAllAttributes`), and extracting device category from a unique ID (`deviceCategoryForDeviceUniqueID:`). The class also exposes properties like `ipAddress`, `networkAddress`, `servicePort`, `deviceID`, `friendlyName`, `modelName`, `icons`, `status`, `statusText`, `deviceVersion`, `isOnLocalNetwork`, `type`, `category`, and `uniqueID` for device identification and management.\n"],null,[]]