SharingInvitation

public class SharingInvitation
  • Declaration

    Swift

    public struct Invitation
  • Declaration

    Swift

    public static let session: SharingInvitation
  • Declaration

    Swift

    public weak var delegate: SharingInvitationDelegate?
  • This to deal with the case where the delegate method of this class wasn’t set before the invitation was received. See https://github.com/crspybits/SharedImages/issues/42

    This will be nil if the invitation has already been processed by the delegate. If it returns non-nil, it returns non-nil only once for that invitation.

    Declaration

    Swift

    public func receive() -> Invitation?
  • This URL/String is suitable for sending in an email to the person being invited.

    Handles urls of the form: .invitation://?code=&permission= where is something like biz.SpasticMuffin.SharedImages

    Declaration

    Swift

    public static func createSharingURL(invitationCode: String, permission: Permission) -> String
  • Returns true iff can handle the url.

    Declaration

    Swift

    public func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool