GCKइमेज क्लास
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वेब सर्वर पर मौजूद इमेज को दिखाने वाली क्लास.
इसका इस्तेमाल GCKDevice आइकॉन और GCKMediaMetadata आर्टवर्क जैसी चीज़ों के लिए किया जाता है.
NSObject, <NSकॉपी>, और <NSSecureCoding> को इनहेरिट करता है.
- (instancetype) initWithURL: |
|
(NSURL *) |
URL |
width: |
|
(NSInteger) |
width |
height: |
|
(NSInteger) |
height |
|
|
| |
दिए गए यूआरएल और डाइमेंशन के साथ, एक नया GCKImage बनाता है.
खास तौर पर बनाया गया, शुरू करने वाला टूल.
- Parameters
-
URL | The URL of the image. |
width | The width of the image, in pixels. |
height | The height of the image, in pixels. |
- अपवाद
-
NSInvalidArgumentException | अगर यूआरएल nil है या खाली है या डाइमेंशन अमान्य हैं. |
डिफ़ॉल्ट इनिशलाइज़र उपलब्ध नहीं है.
इमेज की चौड़ाई, पिक्सल में.
इमेज की ऊंचाई, पिक्सल में.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The GCKImage class represents a web-hosted image, used for elements like device icons and media artwork. Key actions include initializing a GCKImage object with `initWithURL:width:height:`, providing the image's URL, width, and height in pixels. The default initializer `init` is unavailable. Properties include `URL` for the image's location, `width` for pixel width, and `height` for pixel height. Initialization with an invalid URL or dimensions will throw an exception.\n"],null,[]]