public class

MediaUri

extends Object
implements Parcelable
java.lang.Object
   ↳ com.pspdfkit.media.MediaUri

Class Overview

Representation of the parsed URI used for media links.

Summary

Nested Classes
enum MediaUri.UriType Type of the media URI. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<MediaUri> CREATOR A field that generates the instances of MediaUri class from Parcel.
Protected Constructors
MediaUri(Parcel in)
Public Methods
int describeContents()
boolean equals(Object obj)
Uri getFileUri(Context context)
Returns URI of the media file that will be played.
String getOptions()
Options inside the [] brackets in pspdfkit:// link.
Uri getParsedUri()
Creates Uri object from the getUri().
MediaUri.UriType getType()
Type of the media uri.
String getUri()
Uri part of the pspdfkit:// link.
MediaLinkUtils.VideoSettings getVideoSettingsFromOptions()
Parses video settings from provided options.
int hashCode()
boolean isVideoUri()
Test if media uri is pointing to a video resource.
static MediaUri parse(String fullUri)
Parse link media URI.
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<MediaUri> CREATOR

A field that generates the instances of MediaUri class from Parcel.

Protected Constructors

protected MediaUri (Parcel in)

Public Methods

public int describeContents ()

public boolean equals (Object obj)

public Uri getFileUri (Context context)

Returns URI of the media file that will be played.

Returns
  • File URI of the media content.

public String getOptions ()

Options inside the [] brackets in pspdfkit:// link.

Returns
  • Raw string options.

public Uri getParsedUri ()

Creates Uri object from the getUri().

Returns
  • Uri object for the media link.

public MediaUri.UriType getType ()

Type of the media uri.

Returns
  • Media uri type.

public String getUri ()

Uri part of the pspdfkit:// link.

Returns
  • Uri of the media link.

public MediaLinkUtils.VideoSettings getVideoSettingsFromOptions ()

Parses video settings from provided options. That is the content inside the [] brackets in pspdfkit:// link.

Returns
  • Video settings.

public int hashCode ()

public boolean isVideoUri ()

Test if media uri is pointing to a video resource.

Returns
  • true if media uri points to video (local or youtube).

public static MediaUri parse (String fullUri)

Parse link media URI.

Parameters
fullUri Full URI of the media file.

public String toString ()

public void writeToParcel (Parcel dest, int flags)