TvInteractiveAppService.OnCreateSession(String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回会话的具体实现。
[Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;I)Landroid/media/tv/interactive/TvInteractiveAppService$Session;", "GetOnCreateSession_Ljava_lang_String_IHandler", ApiSince=33)]
public abstract Android.Media.TV.Interactive.TvInteractiveAppService.Session? OnCreateSession(string iAppServiceId, int type);
[<Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;I)Landroid/media/tv/interactive/TvInteractiveAppService$Session;", "GetOnCreateSession_Ljava_lang_String_IHandler", ApiSince=33)>]
abstract member OnCreateSession : string * int -> Android.Media.TV.Interactive.TvInteractiveAppService.Session
参数
- iAppServiceId
- String
与会话关联的电视交互式应用的 ID。 此值不能为 null。
- type
- Int32
与会话关联的电视交互应用的类型。 值为下列值之一:TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_HBBTV;TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_ATSC;TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_GINGA;TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_TARGETED_AD;TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_OTHER。 目标广告和其他类型从 Android 14(API 级别 34)开始可用。
返回
新会话,或者 null 如果服务无法创建它。
- 特性
注解
返回会话的具体实现。
如果此电视交互式应用服务由于某种原因无法创建会话,可能会返回 null。
Android 参考。android.media.tv.interactive.TvInteractiveAppService.onCreateSession
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。