本文整理汇总了Java中com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration.PrevNextPolicy方法的典型用法代码示例。如果您正苦于以下问题:Java CastConfiguration.PrevNextPolicy方法的具体用法?Java CastConfiguration.PrevNextPolicy怎么用?Java CastConfiguration.PrevNextPolicy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration
的用法示例。
在下文中一共展示了CastConfiguration.PrevNextPolicy方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setNextPreviousVisibilityPolicy
import com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration; //导入方法依赖的package包/类
@Override // from VideoCastController
public void setNextPreviousVisibilityPolicy(@CastConfiguration.PrevNextPolicy int policy) {
mNextPreviousVisibilityPolicy = policy;
}
示例2: setNextPreviousVisibilityPolicy
import com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration; //导入方法依赖的package包/类
/**
* Sets the policy for the visibility/status of the Skip Next/Prev buttons. The policy declares
* what should the visibility or status of these buttons be when the position of the current
* item is at the edges of the queue. For example, if the current item is the last item in the
* queue, what should be the visibility or status of the "Skip Next" button. Available policies
* are:
* <ul>
* <li>{@link CastConfiguration#NEXT_PREV_VISIBILITY_POLICY_ALWAYS}: always show the button
* <li>{@link CastConfiguration#NEXT_PREV_VISIBILITY_POLICY_DISABLED}: disable the button
* <li>{@link CastConfiguration#NEXT_PREV_VISIBILITY_POLICY_HIDDEN}: hide the button
* </ul>
* The default behavior is {@link CastConfiguration#NEXT_PREV_VISIBILITY_POLICY_DISABLED}
*/
void setNextPreviousVisibilityPolicy(@CastConfiguration.PrevNextPolicy int policy);