Package com.pspdfkit.media
Class MediaLinkUtils
-
- All Implemented Interfaces:
public class MediaLinkUtils
Methods for handling PSPDFKit media links.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MediaLinkUtils.VideoSettings
A class containing settings for the video.
-
Constructor Summary
Constructors Constructor Description MediaLinkUtils()
-
Method Summary
Modifier and Type Method Description static Array<String>
extractOptionsAndPath(@NonNull() String url)
Takes url in format [options]url and separates the two. static MediaLinkUtils.VideoSettings
getVideoSettingsFromOptions(@Nullable() String options)
Parses video settings from provided options url. -
-
Method Detail
-
extractOptionsAndPath
@NonNull()@Size(value = 2) static Array<String> extractOptionsAndPath(@NonNull() String url)
Takes url in format [options]url and separates the two.
- Parameters:
url
- The full url.
-
getVideoSettingsFromOptions
@NonNull() static MediaLinkUtils.VideoSettings getVideoSettingsFromOptions(@Nullable() String options)
Parses video settings from provided options url. That is the content inside the [] brackets in pspdf:// link.
- Parameters:
options
- Options for the video.- Returns:
Parsed video settings.
-
-
-
-