مرجع بروتوكول GGUIUIButtonButtonBarProtocol>
نظرة عامة
بروتوكول تفويض GCKUIMediaButtonBarProtocol
- سينسي
- 3.1
يكتسب <NSObject>.
مكتسب من GCKUIExpandedMediaControlsViewController، وGCKUIMiniMediaControlsViewController.
ملخص طريقة المثيل | |
(NSUInteger) | - buttonCount |
الحد الأقصى لعدد الأزرار التي يمكن للمستلم تخصيصها. المزيد... | |
(void) | - setButtonType:atIndex: |
لتعيين نوع الزر للزر index . المزيد... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
لعرض النوع الحالي من الأزرار في موضع معين. المزيد... | |
(void) | - setCustomButton:atIndex: |
لتعيين مثيل UIButton الذي يجب عرضه في موضع معين للزر. المزيد... | |
(UIButton *__nullable) | - 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: | (UIButton *__nullable) | 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.
- (UIButton *__nullable) customButtonAtIndex: | (NSUInteger) | index |
لعرض مرجع للزر المخصص في موضع معين.
- Parameters
-
index The button's position, where 0 is the right-most position.
- المرتجعات
- إشارة إلى الزر في الموضع المحدد أو
nil
إذا لم يكن هناك زر مخصص في ذلك الموضع أو كان الموضع غير صالح.