Essential Kit
Loading...
Searching...
No Matches
MediaContentSelectOptions

Contains options for selecting media content.

Public Member Functions

 MediaContentSelectOptions (string title, string allowedMimeType, int maxAllowed)
 Initializes a new instance of the MediaContentSelectOptions class.
 

Static Public Member Functions

Helpers
static MediaContentSelectOptions CreateForImage (int maxAllowed=1)
 Creates options for selecting image.
 
static MediaContentSelectOptions CreateForVideo (int maxAllowed=1)
 Creates options for selecting video.
 
static MediaContentSelectOptions CreateForAudio (int maxAllowed=1)
 Creates options for selecting audio.
 
static MediaContentSelectOptions CreateForAny (int maxAllowed=1)
 Creates options for selecting any file type.
 

Properties

string Title [get]
 Gets the title which is shown to user.
 
string AllowedMimeType [get]
 Gets the allowed mime type.
 
int MaxAllowed [get]
 Gets the max allowed.
 

Constructor & Destructor Documentation

◆ MediaContentSelectOptions()

MediaContentSelectOptions ( string title,
string allowedMimeType,
int maxAllowed )

Member Function Documentation

◆ CreateForImage()

static MediaContentSelectOptions CreateForImage ( int maxAllowed = 1)
static
Returns
The options.
Parameters
maxAllowedMax allowed.

References MediaContentSelectOptions.MediaContentSelectOptions(), and MimeType.kAllImages.

◆ CreateForVideo()

static MediaContentSelectOptions CreateForVideo ( int maxAllowed = 1)
static
Returns
The options.
Parameters
maxAllowedMax allowed contents.

References MediaContentSelectOptions.MediaContentSelectOptions(), and MimeType.kAllVideos.

◆ CreateForAudio()

static MediaContentSelectOptions CreateForAudio ( int maxAllowed = 1)
static
Returns
The options.
Parameters
maxAllowedMax allowed.

References MediaContentSelectOptions.MediaContentSelectOptions(), and MimeType.kAllAudio.

◆ CreateForAny()

static MediaContentSelectOptions CreateForAny ( int maxAllowed = 1)
static
Returns
The options.
Parameters
maxAllowedMax allowed.

References MediaContentSelectOptions.MediaContentSelectOptions(), and MimeType.kAny.

Property Documentation

◆ Title

string Title
get

◆ AllowedMimeType

string AllowedMimeType
get

The allowed mime type.

Referenced by MediaContentSelectOptions.MediaContentSelectOptions().

◆ MaxAllowed

int MaxAllowed
get