Présentation
Le protocole de délégation GCKUIMediaButtonBarProtocol.
- Sincé
- 3.1
Hérite de <NSObject>.
Hérité par GCKUIExpandedMediaControlsViewController et GCKUIMiniMediaControlsViewController.
Résumé de la méthode d'instance | |
(NSUInteger) | - buttonCount |
Nombre maximal de boutons personnalisables par le récepteur. Plus... | |
(void) | - setButtonType:atIndex: |
Définit le type du bouton à la position index . Plus... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
Renvoie le type actuel de bouton à une position donnée. Plus... | |
(void) | - setCustomButton:atIndex: |
Définit l'instance de l'élément UIButton qui doit être présenté à l'emplacement d'un bouton donné. Plus... | |
(UIButton *__nullable) | - customButtonAtIndex: |
Renvoie une référence au bouton personnalisé à une position donnée. Plus... | |
Détails sur la méthode
- (NSUInteger) buttonCount |
Nombre maximal de boutons personnalisables par le récepteur.
- Retours
- Nombre de boutons.
- (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
atIndex: | (NSUInteger) | index | |
Définit le type du bouton à la position 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 |
Renvoie le type actuel de bouton à une position donnée.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Retours
- Type du bouton à la position sélectionnée.
- (void) setCustomButton: | (UIButton *__nullable) | customButton | |
atIndex: | (NSUInteger) | index | |
Définit l'instance de l'élément UIButton qui doit être présenté à l'emplacement d'un bouton donné.
- 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.
- (UIButton *__nullable) customButtonAtIndex: | (NSUInteger) | index |
Renvoie une référence au bouton personnalisé à une position donnée.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Retours
- Une référence au bouton à l'emplacement sélectionné ou
nil
s'il n'y a pas de bouton personnalisé à cette position, ou la position n'est pas valide.