/// <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;
        }
Esempio n. 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)
        {
            ValidationUtil.ValidateEnum(typeof(MediaControlSearchCategory), category, nameof(category));
            ValidationUtil.ValidateEnum(typeof(MediaControlContentType), type, nameof(type));

            Category    = category;
            ContentType = type;
            Keyword     = keyword ?? throw new ArgumentNullException(nameof(keyword));
            Bundle      = bundle;
        }
Esempio n. 3
0
 internal static extern MediaControllerError SetSearchConditionBundle(IntPtr searchHandle,
                                                                      MediaControlContentType type, MediaControlSearchCategory category, string keyword, SafeBundleHandle bundle);
Esempio n. 4
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)
 {
 }