<GCKUIImagePicker> Protocol

  • GCKUIImagePicker is a protocol used for selecting an image from a GCKMediaMetadata object for a specific purpose.

  • A default implementation selects the first image, but applications can provide a custom implementation.

  • The getImageWithHints:fromMetadata: method is used to retrieve an image based on hints and metadata.

<GCKUIImagePicker> Protocol Reference

Overview

An object used for selecting an image for a given purpose from a GCKMediaMetadata object.

A default implementation is used internally by the framework which always selects the first image from the metadata for all uses. The application can provide a custom implementation by setting the GCKCastContext::imagePicker property.

Since
3.0

Inherits <NSObject>.

Instance Method Summary

Returns an image of the specified type from the media metadata. More...

Method Detail

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

Returns an image of the specified type from the media metadata.

Parameters
imageHints The hints about how to pick the image.
metadata The media metadata to pick from.
Returns
The selected image, or nil if there is no appropriate image for the requested type.
Create a Mobile Website
View Site in Mobile | Classic
Share by: