<GCKUIImageCache> 프로토콜

<GCKUIImageCache> 프로토콜 참조

개요

이미지를 검색하고 캐시하는 수단을 정의하는 프로토콜입니다.

기본 구현은 프레임워크 내부적으로 사용되어 사용자 인터페이스에 표시되는 미디어 아트워크를 캐시합니다. 애플리케이션은 GCKCastContext::imageCache 속성을 설정하여 맞춤 구현을 제공할 수 있습니다.

다음 이후:
3.0

<NSObject>를 상속합니다.

인스턴스 메서드 요약

(void) - fetchImageForURL:completion:
 지정된 URL에서 이미지를 가져오고 이미지의 배율이 조정된 버전을 반환합니다. 더보기...
 

메서드 세부정보

- (void) fetchImageForURL: (NSURL *)  imageURL
completion: (void(^)(UIImage *_Nullable))  completion 

지정된 URL에서 이미지를 가져오고 이미지의 배율이 조정된 버전을 반환합니다.

이는 비동기 작업입니다.

Parameters
imageURLThe URL of the image.
completionA block to invoke once the image has been retrieved. The image should be passed to the block. If there was an error retrieving the image, nil should be passed instead. The block should only be invoked on the main thread.