Show / Hide Table of Contents

    Class MediaType

    Base container class for a mediatype definition. A MediaType contains information about the type of media of a specific experience. This includes how to display the media, but also how to load and upload it.

    Inheritance
    System.Object
    MediaType
    ImageMediaType
    VideoMediaType
    Namespace: Appearition.Common
    Assembly: Appearition.SDK.dll
    Syntax
    [Serializable]
    public class MediaType

    Constructors

    MediaType()

    Declaration
    public MediaType()

    MediaType(MediaType)

    Copy Constructor

    Declaration
    public MediaType(MediaType cc)
    Parameters
    Type Name Description
    MediaType cc

    C.

    Properties

    DataProviderName

    Declaration
    public virtual string DataProviderName { get; set; }
    Property Value
    Type Description
    System.String

    DisplayName

    Declaration
    public virtual string DisplayName { get; }
    Property Value
    Type Description
    System.String

    FileLabel

    Declaration
    public virtual string FileLabel { get; set; }
    Property Value
    Type Description
    System.String

    FileValidations

    Declaration
    public virtual List<MediaType.FileValidation> FileValidations { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MediaType.FileValidation>

    IsDataQuery

    Declaration
    public virtual bool IsDataQuery { get; set; }
    Property Value
    Type Description
    System.Boolean

    MaxTextChars

    Declaration
    public virtual int MaxTextChars { get; set; }
    Property Value
    Type Description
    System.Int32

    MaxTransformTemplateChars

    Declaration
    public virtual int MaxTransformTemplateChars { get; set; }
    Property Value
    Type Description
    System.Int32

    MediaTypeId

    Declaration
    public virtual int MediaTypeId { get; set; }
    Property Value
    Type Description
    System.Int32

    Name

    Declaration
    public virtual string Name { get; set; }
    Property Value
    Type Description
    System.String

    OtherProperties

    Declaration
    public virtual List<MediaType.OtherProperty> OtherProperties { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MediaType.OtherProperty>

    PropertyDefaults

    Declaration
    public virtual List<MediaType.PropertyDefault> PropertyDefaults { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MediaType.PropertyDefault>

    ShowDisplayMode

    Declaration
    public virtual bool ShowDisplayMode { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowFileUpload

    Declaration
    public virtual bool ShowFileUpload { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowLanguage

    Declaration
    public virtual bool ShowLanguage { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowMultiLineText

    Declaration
    public virtual bool ShowMultiLineText { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowPlatform

    Declaration
    public virtual bool ShowPlatform { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowSingleLineText

    Declaration
    public virtual bool ShowSingleLineText { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowUrl

    Declaration
    public virtual bool ShowUrl { get; set; }
    Property Value
    Type Description
    System.Boolean

    UrlLabel

    Declaration
    public virtual string UrlLabel { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    GetAllPossibleExtensions(Boolean)

    Returns of all the extensions valid for this MediaType.

    Declaration
    public List<string> GetAllPossibleExtensions(bool removeExtensionDot = false)
    Parameters
    Type Name Description
    System.Boolean removeExtensionDot
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    The all possible extensions.

    GetMimeTypeForGivenExtension(String)

    Given an extension, returns the associated mime type.

    Declaration
    public string GetMimeTypeForGivenExtension(string extension)
    Parameters
    Type Name Description
    System.String extension

    Extension.

    Returns
    Type Description
    System.String

    The MIME type for given extension.

    Extension Methods

    ObjectExtension.ToStream(Object)
    Back to top Appearition SDK for Unity API