Обзор
Протокол делегата GCKUIMediaButtonBarProtocol .
- С
- 3.1
Наследует <NSObject>.
Наследуется GCKUIExpandedMediaControlsViewController и GCKUIMiniMediaControlsViewController .
Резюме метода экземпляра | |
(NSUInteger) | - buttonCount |
Максимальное количество кнопок, которое может настроить приемник. Более... | |
(void) | - setButtonType:atIndex: |
Устанавливает тип кнопки для кнопки в позиции index . Более... | |
( GCKUIMediaButtonType ) | - buttonTypeAtIndex: |
Возвращает текущий тип кнопки в заданной позиции. Более... | |
(void) | - setCustomButton:atIndex: |
Устанавливает экземпляр UIButton , который должен быть представлен в данной позиции кнопки. Более... | |
(nullable UIButton *) | - customButtonAtIndex: |
Возвращает ссылку на пользовательскую кнопку в заданной позиции. Более... | |
Сведения о методе
- (NSUInteger) buttonCount |
Максимальное количество кнопок, которое может настроить приемник.
- Возвращает
- Количество кнопок.
- (void) setButtonType: | ( GCKUIMediaButtonType ) | buttonType | |
atIndex: | (NSUInteger) | index | |
Устанавливает тип кнопки для кнопки в позиции 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 |
Возвращает текущий тип кнопки в заданной позиции.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Возвращает
- Тип кнопки в выбранной позиции.
- (void) setCustomButton: | (nullable UIButton *) | customButton | |
atIndex: | (NSUInteger) | index | |
Устанавливает экземпляр UIButton , который должен быть представлен в данной позиции кнопки.
- 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 |
Возвращает ссылку на пользовательскую кнопку в заданной позиции.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Возвращает
- Ссылка на кнопку в выбранной позиции или
nil
, если в этой позиции нет пользовательской кнопки или позиция недействительна.