SCSDKSnapVideo

Objective-C

@interface SCSDKSnapVideo : NSObject <SCSDKCreativeKitModelValidating>

Swift

class SCSDKSnapVideo : NSObject, SCSDKCreativeKitModelValidating

This class lets you initialize videos that users can share to Snapchat.

  • @property videoUrl @brief File URL to the file to be used as video for a Snap.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSURL *_Nonnull videoUrl;

    Swift

    var videoUrl: URL { get }
  • Initializes an SCSDKSnapVideo instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithVideoUrl:(nonnull NSURL *)videoUrl;

    Swift

    init(videoUrl: URL)

    Parameters

    videoUrl

    NSURL of a video file on disk to be used as a Snap.

    Return Value

    An SCSDKSnapVideo instance initialized with videoUrl.