פרוטוקול <GCKUIMediabuttonBarProtocol>

סימוכין לפרוטוקול <GCKUIMediabuttonBarProtocol>

סקירה כללית

פרוטוקול ההאצלה של 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
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

מחזירה את סוג הלחצן הנוכחי במיקום נתון.

Parameters
indexThe button's position, where 0 is the left-most position.
החזרות
סוג הלחצן במיקום שנבחר.
- (void) setCustomButton: (nullable UIButton *)  customButton
atIndex: (NSUInteger)  index 

מגדיר את המופע של UIButton שיוצג במיקום נתון בלחצן.

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.
- (nullable UIButton *) customButtonAtIndex: (NSUInteger)  index

מחזירה הפניה ללחצן המותאם אישית במיקום נתון.

Parameters
indexThe button's position, where 0 is the right-most position.
החזרות
הפניה ללחצן במיקום שנבחר, או nil אם אין לחצן מותאם אישית במיקום הזה, או שהמיקום לא חוקי.