Opis
Protokół delegowania GCKUIMediaButtonBarProtocol.
- Od
- 3.1
Dziedziczy <NSObject>.
Odziedziczone przez: GCKUIExpandedMediaControlsViewController i GCKUIMiniMediaControlsViewController.
Podsumowanie metody instancji | |
| (NSUInteger) | - buttonCount |
| Maksymalna liczba przycisków, które można dostosować przez odbiornik. Więcej... | |
| (void) | - setButtonType:atIndex: |
Ustawia typ przycisku w pozycji index. Więcej... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| Zwraca bieżący typ przycisku w danej pozycji. Więcej... | |
| (void) | - setCustomButton:atIndex: |
| Ustawia wystąpienie elementu UIButton, które powinno być wyświetlane w danej pozycji przycisku. Więcej... | |
| (nullable UIButton *) | - customButtonAtIndex: |
| Zwraca odwołanie do przycisku niestandardowego w podanej pozycji. Więcej... | |
Szczegóły metody
| - (NSUInteger) buttonCount |
Maksymalna liczba przycisków, które można dostosować przez odbiornik.
- Akcje powrotne
- Liczba przycisków.
| - (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
| atIndex: | (NSUInteger) | index | |
Ustawia typ przycisku w pozycji 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 |
Zwraca bieżący typ przycisku w danej pozycji.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Akcje powrotne
- Typ przycisku w wybranej pozycji.
| - (void) setCustomButton: | (nullable UIButton *) | customButton | |
| atIndex: | (NSUInteger) | index | |
Ustawia wystąpienie elementu UIButton, które powinno być wyświetlane w danej pozycji przycisku.
- 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 |
Zwraca odwołanie do przycisku niestandardowego w podanej pozycji.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Akcje powrotne
- Odniesienie do przycisku na wybranej pozycji lub
nil, jeśli w tym miejscu nie ma przycisku niestandardowego lub pozycja jest nieprawidłowa.