Package com.pspdfkit.annotations
Class MediaAnnotation
-
- All Implemented Interfaces:
public abstract class MediaAnnotation extends AssetAnnotation
Abstract annotation class holding a media file asset. Holds shared code between and RichMediaAnnotation.
-
-
Method Summary
Modifier and Type Method Description EnumSet<MediaOptions>
getMediaOptions()
Media options flags set. void
setMediaOptions(@NonNull() EnumSet<MediaOptions> mediaOptions)
Sets media options for this media annotation. MediaWindowType
getWindowMediaType()
Returns type of the window to be used when playing this media content. void
setWindowMediaType(@NonNull() MediaWindowType mediaWindowType)
Sets type of the window to be used when playing this media content. -
-
Method Detail
-
getMediaOptions
EnumSet<MediaOptions> getMediaOptions()
Media options flags set. Changing returned EnumSet does not change media options flags. Instead call setMediaOptions to change annotation flags.
- Returns:
Set of annotation flags of empty set if no flags were configured.
-
setMediaOptions
void setMediaOptions(@NonNull() EnumSet<MediaOptions> mediaOptions)
Sets media options for this media annotation.
- Parameters:
mediaOptions
- Media options flags to be set on the annotation.
-
getWindowMediaType
MediaWindowType getWindowMediaType()
Returns type of the window to be used when playing this media content.
- Returns:
Type of the media window to be used.
-
setWindowMediaType
void setWindowMediaType(@NonNull() MediaWindowType mediaWindowType)
Sets type of the window to be used when playing this media content.
- Parameters:
mediaWindowType
- Type of the media window to be used.
-
-
-
-