Descripción general
El protocolo delegado GCKUIMediaButtonBarProtocol.
- Since
- 3.1
Hereda <NSObject>.
Heredada por GCKUIExpandedMediaControlsViewController y GCKUIMiniMediaControlsViewController.
Resumen del método de instancia | |
| (NSUInteger) | - buttonCount |
| La cantidad máxima de botones que puede personalizar el receptor. Más... | |
| (void) | - setButtonType:atIndex: |
Establece el tipo de botón para el botón en la posición index. Más... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| Muestra el tipo de botón actual en una posición determinada. Más... | |
| (void) | - setCustomButton:atIndex: |
| Establece la instancia de UIButton que debe presentarse en una posición determinada del botón. Más... | |
| (UIButton *__nullable) | - customButtonAtIndex: |
| Muestra una referencia al botón personalizado en una posición determinada. Más... | |
Detalle del método
| - (NSUInteger) buttonCount |
La cantidad máxima de botones que puede personalizar el receptor.
- Resultado que se muestra
- Cantidad de botones
| - (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
| atIndex: | (NSUInteger) | index | |
Establece el tipo de botón para el botón en la posición 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 |
Muestra el tipo de botón actual en una posición determinada.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Resultado que se muestra
- El tipo del botón en la posición seleccionada.
| - (void) setCustomButton: | (UIButton *__nullable) | customButton | |
| atIndex: | (NSUInteger) | index | |
Establece la instancia de UIButton que debe presentarse en una posición determinada del botón.
- 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.
| - (UIButton *__nullable) customButtonAtIndex: | (NSUInteger) | index |
Muestra una referencia al botón personalizado en una posición determinada.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Resultado que se muestra
- Una referencia al botón en la posición seleccionada, o
nilsi no hay un botón personalizado en esa posición o la posición no es válida.