Classe GCKUIExpandedMediaControlsViewController

Documentation de référence sur la classe GCKUIExpandedMediaControlsViewController

Présentation

Contrôleur de vue qui implémente la vue développée en plein écran.

Sincé
3.1

Hérite d'UIViewController. Met en œuvre <GCKUIMediaButtonBarProtocol>.

Résumé de la méthode d'instance

(NSUInteger) - buttonCount
 Nombre maximal de boutons personnalisables par le récepteur. Plus...
 
(void) - setButtonType:atIndex:
 Définit le type du bouton à la position index. Plus...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 Renvoie le type actuel de bouton à une position donnée. Plus...
 
(void) - setCustomButton:atIndex:
 Définit l'instance de l'élément UIButton qui doit être présenté à l'emplacement d'un bouton donné. Plus...
 
(UIButton *__nullable) - customButtonAtIndex:
 Renvoie une référence au bouton personnalisé à une position donnée. Plus...
 

Détails sur la méthode

- (NSUInteger) buttonCount

Nombre maximal de boutons personnalisables par le récepteur.

Retours
Nombre de boutons.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Définit le type du bouton à la position index.

Parameters
buttonTypeThe type of the button. If the type is GCKUIMediaButtonTypeCustom, a UIButton instance should be passed for the same index using setCustomButton:atIndex:. Otherwise a default button is created and presented in that position.
indexThe position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
- (GCKUIMediaButtonType) buttonTypeAtIndex: (NSUInteger)  index

Renvoie le type actuel de bouton à une position donnée.

Parameters
indexThe button's position, where 0 is the left-most position.
Retours
Type du bouton à la position sélectionnée.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Définit l'instance de l'élément UIButton qui doit être présenté à l'emplacement d'un bouton donné.

Parameters
customButtonThe button instance to be presented in the control bar.
indexThe position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
- (UIButton *__nullable) customButtonAtIndex: (NSUInteger)  index

Renvoie une référence au bouton personnalisé à une position donnée.

Parameters
indexThe button's position, where 0 is the right-most position.
Retours
Une référence au bouton à l'emplacement sélectionné ou nil s'il n'y a pas de bouton personnalisé à cette position, ou la position n'est pas valide.