<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
إذا لم يكن هناك زر مخصّص في هذا الموضع، أو إذا كان الموضع غير صالح.