public bool IsIntentTypeEnabled(IntentType type) { switch (type) { case IntentType.PLAY_VIDEO: return(YouTubeIntents.CanResolvePlayVideoIntent(this)); case IntentType.OPEN_PLAYLIST: return(YouTubeIntents.CanResolveOpenPlaylistIntent(this)); case IntentType.PLAY_PLAYLIST: return(YouTubeIntents.CanResolvePlayPlaylistIntent(this)); case IntentType.OPEN_SEARCH: return(YouTubeIntents.CanResolveSearchIntent(this)); case IntentType.OPEN_USER: return(YouTubeIntents.CanResolveUserIntent(this)); case IntentType.OPEN_CHANNEL: return(YouTubeIntents.CanResolveChannelIntent(this)); case IntentType.UPLOAD_VIDEO: return(YouTubeIntents.CanResolveUploadIntent(this)); } return(false); }
public bool IsIntentTypeEnabled(IntentType type) { switch (type) { case IntentType.PlayVideo: return(YouTubeIntents.CanResolvePlayVideoIntent(context)); case IntentType.OpenPlaylist: return(YouTubeIntents.CanResolveOpenPlaylistIntent(context)); case IntentType.PlayPlaylist: return(YouTubeIntents.CanResolvePlayPlaylistIntent(context)); case IntentType.OpenSearch: return(YouTubeIntents.CanResolveSearchIntent(context)); case IntentType.OpenUser: return(YouTubeIntents.CanResolveUserIntent(context)); case IntentType.OpenChannel: return(YouTubeIntents.CanResolveChannelIntent(context)); case IntentType.UploadVideo: return(YouTubeIntents.CanResolveUploadIntent(context)); } return(false); }