Classes

The following classes are available globally.

  • A view that previews a recording.

    Created by -[Megacool getPreview]. The view is initially transparent, but becomes visible when we have loaded at least one frame to show.

    See more

    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.
    See more

    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.
    See more

    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.
    See more

    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 more

    Declaration

    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.
    See more

    Declaration

    Objective-C

    @interface MCLShareConfig : NSObject <NSCopying>

    Swift

    class MCLShareConfig : NSObject, NSCopying
  • Declaration

    Objective-C

    @interface Megacool : NSObject

    Swift

    class Megacool : NSObject