<GCKUIImageCache> プロトコル
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
画像の取得とキャッシュ保存の手段を定義するプロトコル。
デフォルトの実装は、ユーザー インターフェースに表示されるメディア アートワークをキャッシュするためにフレームワークによって内部的に使用されます。アプリケーションは、GCKCastContext::imageCache プロパティを設定することでカスタムの実装を提供できます。
- シンセ
- 3.0
<NSObject> を継承します。
- (void) fetchImageForURL: |
|
(NSURL *) |
imageURL |
completion: |
|
(void(^)(UIImage *__nullable)) |
completion |
|
|
| |
指定された URL にある画像を取得し、画像の縮小バージョンを返します。
これは非同期オペレーションです。
- Parameters
-
imageURL | The URL of the image. |
completion | A 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. |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-12-06 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2022-12-06 UTC。"],[[["The `GCKUIImageCache` protocol defines how images are retrieved and cached within the Google Cast framework."],["Developers can provide a custom implementation to manage image caching for media artwork displayed in the UI."],["The `fetchImageForURL:completion:` method asynchronously retrieves and scales images, notifying via a completion block on the main thread."]]],[]]