当前位置: 首页>>代码示例>>Java>>正文


Java CastConfiguration.PrevNextPolicy方法代码示例

本文整理汇总了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;
}
 
开发者ID:archos-sa,项目名称:aos-Video,代码行数:5,代码来源:CastPlayerActivity.java

示例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);
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:15,代码来源:VideoCastController.java


注:本文中的com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration.PrevNextPolicy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。