BaseMedia

class BaseMedia

A BaseMedia collects a specific media url, size and content type that will be used for sharing and for display purposes.

Summary

Constructors
BaseMedia(url: String, width: Int, height: Int)
BaseMedia(url: String, width: Int, height: Int, contentType: String?)

Constructors

BaseMedia

class BaseMedia(
    url: String,
    width: Int,
    height: Int
)
Parameters
url: String A direct url to the media, in the given content type and size.
width: Int Width of the media for the provided url.
height: Int Height of the media for the provided url.

BaseMedia

class BaseMedia(
    url: String,
    width: Int,
    height: Int,
    contentType: String? = null
)
Parameters
url: String A direct url to the media, in the given content type and size.
width: Int Width of the media for the provided url.
height: Int Height of the media for the provided url.
contentType: String? Content type of the media for the provided url.

If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.

Last updated on June 16, 2023