StorylyMomentsManager

@objc
public final class StorylyMomentsManager : NSObject

This class is the main class of Storyly Moments.

  • RootviewController of the Storyly Moments

    Declaration

    Swift

    @objc
    public weak var rootViewController: UIViewController?
  • Delegate of the Storyly Moments which will notify you when an event occurs in Storyly Moments.

    Declaration

    Swift

    @objc
    public var momentsDelegate: MomentsDelegate?
  • This property allows you to change the language shown in storyly elements. Current supported languages are: en(default), es, de

    Declaration

    Swift

    @IBInspectable
    public var languageCode: String { get set }
  • Initializer of the Storyly Moments

    Declaration

    Swift

    @objc
    public init(config: MomentsConfig)

    Parameters

    config

    Config of Storyly Moments

  • This function opens user’s own stories if there is any

    Declaration

    Swift

    @available(*, deprecated, renamed: "openUserStories", message: "This function will be removed in v1.0.0")
    @objc
    public func openMyStories()
  • This function opens user’s own stories if there is any

    Declaration

    Swift

    @objc
    public func openUserStories()
  • This function allows you to pause the user story

    Declaration

    Swift

    @objc
    public func pauseUserStories()
  • This function allows you to resume the user story

    Declaration

    Swift

    @objc
    public func resumeUserStories()
  • This function allows you to dismiss story view.

    Declaration

    Swift

    @objc
    public func closeUserStories(animated: Bool = true, completion: (() -> Void)? = nil)
  • This function opens media gallery

    Declaration

    Swift

    @available(*, deprecated, renamed: "openStoryCreator", message: "This function will be removed in v1.0.0")
    @objc
    public func createStory(mediaImport: Media? = nil)

    Parameters

    mediaImport

    If this parameter is set, this function directly opens create story screen with provided media

  • This function opens media gallery

    Declaration

    Swift

    @objc
    public func openStoryCreator(mediaImport: Media? = nil)

    Parameters

    mediaImport

    If this parameter is set, this function directly opens create story screen with provided media