فئة وحدة التحكم في GCKUI الموسّعةMediaControlsViewController

مرجع فئة GCKUIمولMediaControlsViewController

نظرة عامة

وحدة تحكم في العرض تنفّذ طريقة العرض بملء الشاشة لعناصر التحكم الموسّعة.

منذ
3.1

تكتسب UIViewController. ينفِّذ <GCKUIMediaButtonBarProtocol>.

ملخّص طريقة المثيل

(NSUInteger) - buttonCount
 الحد الأقصى لعدد الأزرار التي يمكن للمستلم تخصيصها. المزيد...
 
(void) - setButtonType:atIndex:
 لضبط نوع الزر للزر في الموضع index. المزيد...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 لعرض النوع الحالي للزر في موضع معين. المزيد...
 
(void) - setCustomButton:atIndex:
 لضبط مثيل UIButton الذي يجب تقديمه في موضع زر معيّن المزيد...
 
(nullable UIButton *) - customButtonAtIndex:
 تعرض مرجعًا للزر المخصّص في موضع معيّن. المزيد...
 

ملخّص الموقع

BOOL hideStreamPositionControlsForLiveContent
 يمكنك اختيار إخفاء عناصر التحكم في موضع البث المباشر (بما في ذلك شريط التمرير الخاص بموضع البث وتصنيف موضع البث وتصنيف مدة البث وعرض مستوى تقدّم البث) في المحتوى المباشر. المزيد...
 

تفاصيل الطريقة

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

تفاصيل الموقع

- (BOOL) hideStreamPositionControlsForLiveContent
readwritenonatomicassign

يمكنك اختيار إخفاء عناصر التحكم في موضع البث المباشر (بما في ذلك شريط التمرير الخاص بموضع البث وتصنيف موضع البث وتصنيف مدة البث وعرض مستوى تقدّم البث) في المحتوى المباشر.

ستكون القيمة التلقائية NO.

منذ
4.0