Klasa GCKUIExpandedMediaControlsViewController Class

Dokumentacja klasy GCKUIExpandedMediaControlsViewController

Omówienie

Kontroler widoku, który implementuje rozwinięty widok pełnoekranowy.

Sincé
3,1

Dziedziczy element UIViewController. Implementuje funkcję <GCKUIMediaButtonBarProtocol>.

Podsumowanie metody instancji

(NSUInteger) - buttonCount
 Maksymalna liczba przycisków, które może dostosować odbiornik. Więcej...
 
(void) - setButtonType:atIndex:
 Ustawia typ przycisku na pozycji index. Więcej...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 Zwraca bieżący typ przycisku w określonej pozycji. Więcej...
 
(void) - setCustomButton:atIndex:
 Określa instancję UIButton, która powinna być prezentowana w określonej pozycji przycisku. Więcej...
 
(UIButton *__nullable) - customButtonAtIndex:
 Zwraca odwołanie do przycisku niestandardowego w danym miejscu. Więcej...
 

Szczegóły metody

- (NSUInteger) buttonCount

Maksymalna liczba przycisków, które może dostosować odbiornik.

Zwraca
Liczba przycisków.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Ustawia typ przycisku na pozycji 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

Zwraca bieżący typ przycisku w określonej pozycji.

Parameters
indexThe button's position, where 0 is the left-most position.
Zwraca
Typ przycisku na wybranej pozycji.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Określa instancję UIButton, która powinna być prezentowana w określonej pozycji przycisku.

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

Zwraca odwołanie do przycisku niestandardowego w danym miejscu.

Parameters
indexThe button's position, where 0 is the right-most position.
Zwraca
Odniesienie do przycisku na wybranej pozycji lub nil, jeśli w tej pozycji nie ma przycisku niestandardowego lub pozycja jest nieprawidłowa.