GCKImage 클래스
웹 서버에 있는 이미지를 나타내는 클래스입니다.
GCKDevice 아이콘 및 GCKMediaMetadata 아트워크와 같은 항목에 사용됩니다.
NSObject, <NS copy> 및 <NSSecureCoding>을 상속합니다.
- (instancetype) initWithURL: |
|
(NSURL *) |
URL |
width: |
|
(NSInteger) |
width |
height: |
|
(NSInteger) |
height |
|
|
| |
지정된 URL과 크기로 새 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 | URL이 nil 이거나 비어 있거나 측정기준이 잘못된 경우입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-02(UTC)
[null,null,["최종 업데이트: 2023-12-02(UTC)"],[[["The `GCKImage` class represents an image located on a web server, used for elements like device icons and media metadata artwork."],["It provides methods for initialization with a URL and dimensions, specifying the image's location and size."],["Key properties include `URL`, `width`, and `height`, offering access to the image's web address and pixel dimensions."],["The default initializer is unavailable; you must use the designated initializer with URL and dimensions."]]],[]]