コード例 #1
0
        /// <summary>
        /// Sets the content type of latest played media.
        /// </summary>
        /// <param name="type">A value indicating the content type of the latest played media.</param>
        /// <exception cref="InvalidOperationException">
        ///     The server is not running .<br/>
        ///     -or-<br/>
        ///     An internal error occurs.
        /// </exception>
        /// <exception cref="ArgumentException"><paramref name="type"/> is invalid.</exception>
        /// <since_tizen> 5 </since_tizen>
        public static void SetPlaybackContentType(MediaControlContentType type)
        {
            ValidationUtil.ValidateEnum(typeof(MediaControlContentType), type, nameof(type));

            Native.SetPlaybackContentType(Handle, type).ThrowIfError("Failed to set playback content type.");

            Native.UpdatePlayback(Handle).ThrowIfError("Failed to set playback.");
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaControlSearchCondition"/> class.
        /// </summary>
        /// <param name="type">The search type.</param>
        /// <param name="category">The search category.</param>
        /// <param name="keyword">The search keyword.</param>
        /// <param name="bundle">The extra data.</param>
        /// <exception cref="ArgumentException">
        /// <paramref name="type"/> or <paramref name="category"/> is not valid.
        /// </exception>
        /// <exception cref="ArgumentNullException"><paramref name="keyword"/> is null.</exception>
        /// <since_tizen> 5 </since_tizen>
        public MediaControlSearchCondition(MediaControlContentType type, MediaControlSearchCategory category,
                                           string keyword, Bundle bundle)
            : this(type, keyword, bundle)
        {
            ValidationUtil.ValidateEnum(typeof(MediaControlSearchCategory), category, nameof(category));

            Category = category;
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaControlSearchCondition"/> class.
        /// </summary>
        /// <remarks>The <see cref="MediaControlSearchCategory"/> will be set internally by <see cref="MediaControlSearchCategory.All"/>.</remarks>
        /// <param name="type" > The search type.</param>
        /// <param name="keyword">The search keyword.</param>
        /// <param name="bundle">The extra data.</param>
        /// <exception cref="ArgumentException"><paramref name="type"/> is not valid.</exception>
        /// <exception cref="ArgumentNullException"><paramref name="keyword"/> is null.</exception>
        /// <since_tizen> 5 </since_tizen>
        public MediaControlSearchCondition(MediaControlContentType type, string keyword, Bundle bundle)
        {
            ValidationUtil.ValidateEnum(typeof(MediaControlContentType), type, nameof(type));

            Category    = MediaControlSearchCategory.All;
            ContentType = type;
            Keyword     = keyword ?? throw new ArgumentNullException(nameof(keyword));
            Bundle      = bundle;
        }
コード例 #4
0
 internal static extern MediaControllerError SetSearchConditionBundle(IntPtr searchHandle,
                                                                      MediaControlContentType type, MediaControlSearchCategory category, string keyword, SafeBundleHandle bundle);
コード例 #5
0
 internal static extern MediaControllerError GetPlaybackContentType(IntPtr playbackHandle,
                                                                    out MediaControlContentType type);
コード例 #6
0
 internal static extern MediaControllerError SetPlaybackContentType(IntPtr serverHandle,
                                                                    MediaControlContentType type);
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MediaControlSearchCondition"/> class.
 /// </summary>
 /// <remarks>
 /// The <see cref="MediaControlSearchCategory"/> will be set internally by <see cref="MediaControlSearchCategory.All"/>.
 /// </remarks>
 /// <param name="type" > The search type.</param>
 /// <param name="keyword">The search keyword.</param>
 /// <param name="bundle">The extra data.</param>
 /// <exception cref="ArgumentException"><paramref name="type"/> is not valid.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="keyword"/> is null.</exception>
 /// <since_tizen> 5 </since_tizen>
 public MediaControlSearchCondition(MediaControlContentType type, string keyword, Bundle bundle)
     : this(type, MediaControlSearchCategory.All, keyword, bundle)
 {
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MediaControlSearchCondition"/> class.
 /// </summary>
 /// <param name="type">The search type.</param>
 /// <param name="category">The search category.</param>
 /// <param name="keyword">The search keyword.</param>
 /// <exception cref="ArgumentException">
 /// <paramref name="type"/> or <paramref name="category"/> is not valid.
 /// </exception>
 /// <exception cref="ArgumentNullException"><paramref name="keyword"/> is null.</exception>
 /// <since_tizen> 6 </since_tizen>
 public MediaControlSearchCondition(MediaControlContentType type, MediaControlSearchCategory category, string keyword)
     : this(type, category, keyword, null)
 {
 }