Enums
The Svrf library offers enum support so you don't have to remember our enums values for categories, stereoscopic types, and media types. You can access them with the static enums
property.
category
Enums for categories available to explore on Svrf.
Syntax
Svrf.enums.category.FACE_FILTERS
Properties
Name | Type | Value |
---|---|---|
FACE_FILTERS | string | "Face Filters" |
mediaType
Enums for the types of media available on Svrf.
Deprecated
360 photos and 360 videos are no longer supported on Svrf.
Syntax
Svrf.enums.mediaType.PHOTOSvrf.enums.mediaType.VIDEOSvrf.enums.mediaType.MODEL_3D
Properties
Name | Type | Value |
---|---|---|
PHOTO | string | "photo" |
VIDEO | string | "video" |
MODEL_3D | string | "3d" |
stereoscopicType
Deprecated
Stereoscopic 360 photos and 360 videos are no longer supported on Svrf.
Enums for stereoscopic types.
This enum can be used to request a specific stereoscopic format for 360º media, set the stereoscopicType
to none
, top-bottom
, or left-right
. The none
option will return only monoscopic content. Omitting it will return all monoscopic and stereoscopic 360º media.
Syntax
Svrf.enums.stereoscopicType.NONESvrf.enums.stereoscopicType.TOP_BOTTOMSvrf.enums.stereoscopicType.LEFT_RIGHT
Properties
Name | Type | Value |
---|---|---|
NONE | string | "none" |
TOP_BOTTOM | string | "top-bottom" |
LEFT_RIGHT | string | "left-right" |