Panoramica
Il protocollo delegato GCKUIMediaButtonBarProtocol.
- Dal
- 3,1
Eredita <NSObject>.
Ereditato da GCKUIExpandedMediaControlsViewController e GCKUIMiniMediaControlsViewController.
Riepilogo del metodo di istanza | |
| (NSUInteger) | - buttonCount |
| Il numero massimo di pulsanti che possono essere personalizzati dal ricevitore. Altro... | |
| (void) | - setButtonType:atIndex: |
Imposta il tipo di pulsante nella posizione index. Altro... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| Restituisce il tipo corrente di pulsante in una determinata posizione. Altro... | |
| (void) | - setCustomButton:atIndex: |
| Imposta l'istanza di UIButton che deve essere presentata in una determinata posizione del pulsante. Altro... | |
| (nullable UIButton *) | - 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 ricevitore.
- Ritorni
- Numero di pulsanti.
| - (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
| atIndex: | (NSUInteger) | index | |
Imposta il tipo di pulsante nella posizione index.
- Parameters
-
buttonType The 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. index The 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 corrente di pulsante in una determinata posizione.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Ritorni
- Il tipo di pulsante nella posizione selezionata.
| - (void) setCustomButton: | (nullable UIButton *) | customButton | |
| atIndex: | (NSUInteger) | index | |
Imposta l'istanza di UIButton che deve essere presentata in una determinata posizione del pulsante.
- Parameters
-
customButton The button instance to be presented in the control bar. index The position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
| - (nullable UIButton *) customButtonAtIndex: | (NSUInteger) | index |
Restituisce un riferimento al pulsante personalizzato in una determinata posizione.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Ritorni
- Un riferimento al pulsante nella posizione selezionata oppure
nilse non è presente alcun pulsante personalizzato in quella posizione o se la posizione non è valida.