Classe GCKUIExpandedMediaControlsViewController

Referência da classe GCKUIExpandedMediaControlsViewController

Visão geral

Um controlador de visualização que implementa a visualização de tela cheia dos controles expandidos.

Since
3,1

Herda UIViewController. Implementa <GCKUIMediaButtonBarProtocol>.

Resumo do método de instância

(NSUInteger) - buttonCount
 O número máximo de botões que podem ser personalizados pelo destinatário. Mais...
 
(void) - setButtonType:atIndex:
 Define o tipo do 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 deve ser apresentada em uma determinada posição do botão. Mais...
 
(UIButton *__nullable) - 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 destinatário.

Retorna
Número de botões.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Define o tipo do botão na posição 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

Retorna o tipo atual de botão em uma determinada posição.

Parameters
indexThe button's position, where 0 is the left-most position.
Retorna
O tipo de botão na posição selecionada.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Define a instância do UIButton que deve ser apresentada em uma determinada posição do botão.

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

Retorna uma referência ao botão personalizado em uma determinada posição.

Parameters
indexThe 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.