-
public final class SnapLensContent extends SnapContent
The model class for sharing a lens attachment to the Snapchat camera.
-
-
Constructor Summary
Constructors Constructor Description SnapLensContent(String lensId, SnapLensLaunchData snapLensLaunchData)
Constructor for sharing a lens to snapchat with integer based ID. SnapLensContent(String lensId)
Constructor for sharing a lens to snapchat.
-
Method Summary
Modifier and Type Method Description static SnapLensContent
createSnapLensContent(@NonNull() String lensUUID, @Nullable() SnapLensLaunchData snapLensLaunchData)
Method for constructing SnapLensContent for a lens specified by UUID. void
setLensId(@NonNull() String lensId)
Setter for the lens id. void
setLensUUID(@NonNull() String lensUUID)
Setter for the lens id. void
setSnapLensLaunchData(@Nullable() SnapLensLaunchData snapLensLaunchData)
Setter for the launch data. SnapLensLaunchData
getSnapLensLaunchData()
Getter for the launch data. String
getLensUUID()
Getter for the lens id. String
getLensId()
Getter for the lens id. String
getSnapLensLaunchDataString()
Getter for the string json launch data. void
setSnapSticker(SnapSticker snapSticker)
Setter for the sticker. String
getDeeplinkUrlPath()
String
getIntentType()
File
getMediaFile()
-
Methods inherited from class com.snap.creativekit.models.SnapContent
getAttachmentUrl, getCaptionText, getSnapSticker, setAttachmentUrl, setCaptionText, setSnapSticker
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
SnapLensContent
SnapLensContent(String lensId, SnapLensLaunchData snapLensLaunchData)
Constructor for sharing a lens to snapchat with integer based ID.- Parameters:
lensId
- The lens attachment id.snapLensLaunchData
- the SnapLensLaunchData object for lens launch data
-
SnapLensContent
SnapLensContent(String lensId)
Constructor for sharing a lens to snapchat.- Parameters:
lensId
- The lens attachment id - a string representing an integer eg ("1234567")
-
-
Method Detail
-
createSnapLensContent
static SnapLensContent createSnapLensContent(@NonNull() String lensUUID, @Nullable() SnapLensLaunchData snapLensLaunchData)
Method for constructing SnapLensContent for a lens specified by UUID.
- Parameters:
lensUUID
- The lens attachment id - a string representing a dash-less UUID,eg ("123e4567e89b12d3a456426614174000")
-
setLensId
@Deprecated() void setLensId(@NonNull() String lensId)
Setter for the lens id.
- Parameters:
lensId
- The lens attachment id - a string representing an integer eg ("1234567")
-
setLensUUID
void setLensUUID(@NonNull() String lensUUID)
Setter for the lens id.
- Parameters:
lensUUID
- The lens attachment uuid - a string representing a dash-less UUID,eg ("123e4567e89b12d3a456426614174000")
-
setSnapLensLaunchData
void setSnapLensLaunchData(@Nullable() SnapLensLaunchData snapLensLaunchData)
Setter for the launch data.
- Parameters:
snapLensLaunchData
- The lens launch data.
-
getSnapLensLaunchData
@Nullable() SnapLensLaunchData getSnapLensLaunchData()
Getter for the launch data.
-
getLensUUID
String getLensUUID()
Getter for the lens id.
-
getSnapLensLaunchDataString
@Nullable() String getSnapLensLaunchDataString()
Getter for the string json launch data.
-
setSnapSticker
void setSnapSticker(SnapSticker snapSticker)
Setter for the sticker. Will always set to null since Creative Kit lensesdoesn't support sticker attachments.
- Parameters:
snapSticker
- The sticker.
-
getDeeplinkUrlPath
String getDeeplinkUrlPath()
-
getIntentType
String getIntentType()
-
getMediaFile
@Nullable() File getMediaFile()
-
-