סימוכין לפרוטוקול <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
-
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אם אין לחצן מותאם אישית במיקום הזה, או שהמיקום לא חוקי.