Informações gerais
O protocolo delegado GCKUIMediaButtonBarProtocol.
- Como
- 3,1
Herda <NSObject>.
Herdado por GCKUIExpandedMediaControlsViewController e GCKUIMiniMediaControlsViewController.
Resumo do método de instância | |
(NSUInteger) | - buttonCount |
O número máximo de botões que podem ser personalizados pelo receptor. Mais... | |
(void) | - setButtonType:atIndex: |
Define o tipo de botão na posição index . Mais... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
Retorna o tipo atual de botão em uma determinada posição. Mais... | |
(void) | - setCustomButton:atIndex: |
Define a instância do UIButton que precisa ser apresentada em uma determinada posição do botão. Mais... | |
(nullable UIButton *) | - customButtonAtIndex: |
Retorna uma referência ao botão personalizado em uma determinada posição. Mais... | |
Detalhes dos métodos
- (NSUInteger) buttonCount |
O número máximo de botões que podem ser personalizados pelo receptor.
- Retorna
- Número de botões.
- (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
atIndex: | (NSUInteger) | index | |
Define o tipo de botão na posição 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 |
Retorna o tipo atual de botão em uma determinada posição.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Retorna
- O tipo do botão na posição selecionada.
- (void) setCustomButton: | (nullable UIButton *) | customButton | |
atIndex: | (NSUInteger) | index | |
Define a instância do UIButton que precisa ser apresentada em uma determinada posição do botão.
- 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 |
Retorna uma referência ao botão personalizado em uma determinada posição.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Retorna
- Uma referência ao botão na posição selecionada ou
nil
se não houver um botão personalizado nessa posição ou se a posição for inválida.