public final class SnapLensContent extends SnapContent
| Constructor and Description |
|---|
SnapLensContent(java.lang.String lensId)
Deprecated.
Lens Id should no longer be used to specify lenses. Please use Lens UUID.
|
SnapLensContent(java.lang.String lensId,
SnapLensLaunchData snapLensLaunchData)
Deprecated.
Lens Id should no longer be used to specify lenses.
Please use createSnapLensContent to construct SnapLensContent with Lens UUID.
|
| Modifier and Type | Method and Description |
|---|---|
static SnapLensContent |
createSnapLensContent(java.lang.String lensUUID,
SnapLensLaunchData snapLensLaunchData)
Method for constructing SnapLensContent for a lens specified by UUID.
|
java.lang.String |
getDeeplinkUrlPath() |
java.lang.String |
getIntentType() |
java.lang.String |
getLensId()
Getter for the lens id.
|
java.lang.String |
getLensUUID()
Getter for the lens id.
|
java.io.File |
getMediaFile() |
SnapLensLaunchData |
getSnapLensLaunchData()
Getter for the launch data.
|
java.lang.String |
getSnapLensLaunchDataString()
Getter for the string json launch data.
|
void |
setLensId(java.lang.String lensId)
Deprecated.
Lens Id should no longer be used to specify lenses. Please use Lens UUID.
|
void |
setLensUUID(java.lang.String lensUUID)
Setter for the lens id.
|
void |
setSnapLensLaunchData(SnapLensLaunchData snapLensLaunchData)
Setter for the launch data.
|
void |
setSnapSticker(SnapSticker snapSticker)
Setter for the sticker.
|
getAttachmentUrl, getCaptionText, getSnapSticker, setAttachmentUrl, setCaptionText@Deprecated
public SnapLensContent(@NonNull
java.lang.String lensId,
@Nullable
SnapLensLaunchData snapLensLaunchData)
lensId - The lens attachment id.snapLensLaunchData - the SnapLensLaunchData object for lens launch data@Deprecated
public SnapLensContent(@NonNull
java.lang.String lensId)
lensId - The lens attachment id - a string representing an integer eg ("1234567")public static SnapLensContent createSnapLensContent(@NonNull java.lang.String lensUUID, @Nullable SnapLensLaunchData snapLensLaunchData)
lensUUID - The lens attachment id - a string representing a dash-less UUID,
eg ("123e4567e89b12d3a456426614174000")@Deprecated
public void setLensId(@NonNull
java.lang.String lensId)
lensId - The lens attachment id - a string representing an integer eg ("1234567")public void setLensUUID(@NonNull
java.lang.String lensUUID)
lensUUID - The lens attachment uuid - a string representing a dash-less UUID,
eg ("123e4567e89b12d3a456426614174000")public void setSnapLensLaunchData(@Nullable
SnapLensLaunchData snapLensLaunchData)
snapLensLaunchData - The lens launch data.@Nullable public SnapLensLaunchData getSnapLensLaunchData()
public java.lang.String getLensUUID()
public java.lang.String getLensId()
@Nullable public java.lang.String getSnapLensLaunchDataString()
public void setSnapSticker(SnapSticker snapSticker)
setSnapSticker in class SnapContentsnapSticker - The sticker.public java.lang.String getDeeplinkUrlPath()
getDeeplinkUrlPath in class SnapContentpublic java.lang.String getIntentType()
getIntentType in class SnapContent@Nullable public java.io.File getMediaFile()
getMediaFile in class SnapContent