بروتوكول GGUIUIButtonButtonBarProtocol>

مرجع بروتوكول 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
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: (UIButton *__nullable)  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.
- (UIButton *__nullable) customButtonAtIndex: (NSUInteger)  index

لعرض مرجع للزر المخصص في موضع معين.

Parameters
indexThe button's position, where 0 is the right-most position.
المرتجعات
إشارة إلى الزر في الموضع المحدد أو nil إذا لم يكن هناك زر مخصص في ذلك الموضع أو كان الموضع غير صالح.