MediaUri

open class MediaUri : Parcelable

Representation of the parsed URI used for media links.

See also

Types

Link copied to clipboard
enum UriType
Type of the media URI.

Properties

Link copied to clipboard
A field that generates the instances of MediaUri class from Parcel.
Link copied to clipboard
The options from the pspdfkit:// link, contained within brackets.
Link copied to clipboard
The type of media URI (local media, YouTube, gallery, web, or other).
Link copied to clipboard
The URI part of the pspdfkit:// link pointing to the media resource.

Functions

Link copied to clipboard
open fun describeContents(): Int
Describes the kinds of special objects contained in this Parcelable instance.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Compares this MediaUri with another object for equality.
Link copied to clipboard
open fun getFileUri(@NonNull context: Context): Uri
Returns URI of the media file that will be played.
Link copied to clipboard
Creates Uri object from the getUri.
Link copied to clipboard
Parses video settings from provided options.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code based on the type, options, and URI.
Link copied to clipboard
open fun isVideoUri(): Boolean
Test if media uri is pointing to a video resource.
Link copied to clipboard
open fun parse(@NonNull fullUri: String): MediaUri
Parse link media URI.
Link copied to clipboard
open fun toString(): String
Returns a string representation of this MediaUri including type, options, and URI.
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)
Flattens this object into a Parcel.