GCKUIExpandedMediaControlsViewController-Klasse

Referenz zur GCKUIExpandedMediaControlsViewController-Klasse

Übersicht

Einen Ansichts-Controller, mit dem die erweiterte Vollbildansicht implementiert wird

Sincé
3,1

Übernimmt UIViewController. Implementiert <GCKUIMediaButtonBarProtocol>.

Zusammenfassung der Instanzmethoden

(NSUInteger) - buttonCount
 Die maximale Anzahl der Schaltflächen, die vom Empfänger angepasst werden können. Mehr...
 
(void) - setButtonType:atIndex:
 Legt den Schaltflächentyp für die Schaltfläche an Position index fest. Mehr...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 Gibt den aktuellen Typ der Schaltfläche an einer bestimmten Position zurück. Mehr...
 
(void) - setCustomButton:atIndex:
 Legt die Instanz von UIButton fest, die an einer bestimmten Position der Schaltfläche angezeigt werden soll. Mehr...
 
(UIButton *__nullable) - customButtonAtIndex:
 Gibt einen Verweis auf die benutzerdefinierte Schaltfläche an einer bestimmten Position zurück. Mehr...
 

Methodendetail

- (NSUInteger) buttonCount

Die maximale Anzahl der Schaltflächen, die vom Empfänger angepasst werden können.

Gibt Folgendes zurück:
Anzahl der Schaltflächen.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Legt den Schaltflächentyp für die Schaltfläche an Position index fest.

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

Gibt den aktuellen Typ der Schaltfläche an einer bestimmten Position zurück.

Parameters
indexThe button's position, where 0 is the left-most position.
Gibt Folgendes zurück:
Der Typ der Schaltfläche an der ausgewählten Position.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Legt die Instanz von UIButton fest, die an einer bestimmten Position der Schaltfläche angezeigt werden soll.

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

Gibt einen Verweis auf die benutzerdefinierte Schaltfläche an einer bestimmten Position zurück.

Parameters
indexThe button's position, where 0 is the right-most position.
Gibt Folgendes zurück:
Ein Verweis auf die Schaltfläche an der ausgewählten Position oder nil, wenn an dieser Position keine benutzerdefinierte Schaltfläche vorhanden oder die Position ungültig ist.