public class SnapMediaFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
SnapPhotoFile |
getSnapPhotoFromFile(java.io.File file)
Factory method to create a SnapPhoto instance given a photo file.
|
SnapSticker |
getSnapStickerFromFile(java.io.File file)
Factory method to create a SnapSticker instance given a sticker file.
|
SnapVideoFile |
getSnapVideoFromFile(java.io.File file)
Factory method to create a SnapVideo instance given a video file.
|
public SnapVideoFile getSnapVideoFromFile(java.io.File file) throws SnapMediaSizeException, SnapVideoLengthException
file - The video file.SnapMediaSizeException - When video file size exceeds 15MBSnapVideoLengthException - When video length exceeds 15 seconds.public SnapPhotoFile getSnapPhotoFromFile(java.io.File file) throws SnapMediaSizeException
file - The photo file.SnapMediaSizeException - If photo size getexceeds 15MB.public SnapSticker getSnapStickerFromFile(java.io.File file) throws SnapStickerSizeException
file - The sticker file.SnapStickerSizeException - If sticker size exceeds 1MB.