Classe GCKUIExpandedMediaControlsViewController

Riferimento alla classe GCKUIExpandedMediaControlsViewController

Panoramica

Un controller di visualizzazione che implementa la visualizzazione a schermo intero dei controlli espansi.

Since
3,1

Eredita UIViewController. Implementa <GCKUIMediaButtonBarProtocol>.

Riepilogo del metodo dell'istanza

(NSUInteger) - buttonCount
 Il numero massimo di pulsanti che possono essere personalizzati dal destinatario. Altro...
 
(void) - setButtonType:atIndex:
 Imposta il tipo di pulsante per la posizione index. Altro...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 Restituisce il tipo di pulsante corrente in una determinata posizione. Altro...
 
(void) - setCustomButton:atIndex:
 Imposta l'istanza di UIButton da presentare in una determinata posizione del pulsante. Altro...
 
(UIButton *__nullable) - customButtonAtIndex:
 Restituisce un riferimento al pulsante personalizzato in una determinata posizione. Altro...
 

Dettaglio metodo

- (NSUInteger) buttonCount

Il numero massimo di pulsanti che possono essere personalizzati dal destinatario.

Valori restituiti
Numero di pulsanti.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Imposta il tipo di pulsante per la posizione 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

Restituisce il tipo di pulsante corrente in una determinata posizione.

Parameters
indexThe button's position, where 0 is the left-most position.
Valori restituiti
Il tipo di pulsante nella posizione selezionata.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Imposta l'istanza di UIButton da presentare in una determinata posizione del pulsante.

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

Restituisce un riferimento al pulsante personalizzato in una determinata posizione.

Parameters
indexThe button's position, where 0 is the right-most position.
Valori restituiti
Un riferimento al pulsante nella posizione selezionata oppure nil se non è disponibile alcun pulsante personalizzato in tale posizione o se la posizione non è valida.