setSnapchat method

void setSnapchat(
  1. String title,
  2. String attachmentUrl,
  3. String image,
  4. String? video,
  5. String sticker,
  6. bool stickerAnimated,
  7. double stickerRotation,
  8. bool cameraViewState,
  9. SSDKContentType type,
)

Implementation

void setSnapchat(String title, String attachmentUrl, String image, String? video, String sticker, bool stickerAnimated, double stickerRotation, bool cameraViewState, SSDKContentType type) {
	Map params = {};

	params[kType] = type.value;
	params[kImages] = image;
	params[kTitle] = title;
	params["Sticker"] = sticker;
	params[kAttachments] = attachmentUrl;
	params["Sticker_animated"] = stickerAnimated;
	params["Sticker_rotation"] = stickerRotation;
	params["Sticker_cameraviewstate"] = cameraViewState;
	if (video != null) {
		params[kVideo] = video;
	}

	int? id = ShareSDKPlatforms.snapchat.id;
	map["@platform($id)"] = params;
}