GCKUIImagePicker> 通訊協定(&T)

<GCKUIImagePicker> 通訊協定參考資料

總覽

用於從 GCKMediaMetadata 物件選取特定用途圖片的物件。

架構內部會使用預設的實作方式,該架構一律會從中繼資料中選取第一張圖片供所有用途使用。應用程式可以透過設定 GCKCastContext::imagePicker 屬性來提供自訂實作。

開始時間
3.0

繼承 <NSObject>。

執行個體方法摘要

(nullable GCKImage *) - getImageWithHints:fromMetadata:
 從媒體中繼資料傳回指定類型的圖片。更多...
 

方法詳細資料

- (nullable GCKImage *) getImageWithHints: (GCKUIImageHints *)  imageHints
fromMetadata: (const GCKMediaMetadata *)  metadata 

從媒體中繼資料傳回指定類型的圖片。

Parameters
imageHintsThe hints about how to pick the image.
metadataThe media metadata to pick from.
傳回
選取的圖片;如果所選類型沒有合適的圖片,則顯示 nil