Classes
The following classes are available globally.
-
See moreMCLEvent
s are passed in the callback of+[Megacool startWithAppConfig:andEventHandler:]
and is triggered soon after the app opens. There are three types of events which is defined inMCLEventType
.Declaration
Objective-C
@interface MCLEvent : NSObject
Swift
class MCLEvent : NSObject
-
A view that previews a recording.
Created by
See more-[Megacool getPreview]
. The view is initially transparent, but becomes visible when we have loaded at least one frame to show.Declaration
Objective-C
@interface MCLPreview : UIView
Swift
class MCLPreview : UIView
-
Pass this to
-[Megacool getPreviewWithConfig:]
to customize the preview.Note
This class does not have atomic properties for efficiency, thus it’s not thread-safe.Declaration
Objective-C
@interface MCLPreviewConfig : NSObject
Swift
class MCLPreviewConfig
-
Declaration
Objective-C
@interface MCLPreviewData : NSObject
Swift
class MCLPreviewData : NSObject
-
Pass this to
-[Megacool startRecording:withConfig:]
to configure how recordings are made.Note
This class does not have atomic properties for efficiency, thus it’s not thread-safe.Declaration
Objective-C
@interface MCLRecordingConfig : NSObject <NSCopying>
Swift
class MCLRecordingConfig : NSObject, NSCopying
-
The referral code is the magic part tacked on to URLs shared through the SDK that allows us to credit a user for inviting others. You do not need to create these yourself.
A referral code consists of two parts:
userId
: 8 characters that uniquely identifies the user/app combination.shareId
: 2+ characters that identifies a given share. This enables us to associate each share with a GIF.
Declaration
Objective-C
@interface MCLReferralCode : NSObject
Swift
class MCLReferralCode : NSObject
-
MCLShare holds information about a share, like which state it has (MCLShareStateSent, MCLShareStateClicked, MCLShareStateOpened or MCLShareStateInstalled), the URL and custom data.
See moreDeclaration
Objective-C
@interface MCLShare : NSObject
Swift
class MCLShare : NSObject
-
Pass this to
-[Megacool presentShareWithConfig:]
to configure how a share is performed.Note
This class does not have atomic properties for efficiency, thus it’s not thread-safe.Declaration
Objective-C
@interface MCLShareConfig : NSObject <NSCopying>
Swift
class MCLShareConfig : NSObject, NSCopying