MASDKCustomPermissionModel

public class MASDKCustomPermissionModel : Codable, Hashable, Comparable

MASDKCustomPermissionModel helps to communicate with the Host app back and forth when Custom Permissions are requested by a Mini App. When Custom Permissions received from Mini app, this class is used by SDK to define the type of custom permissions that is requested and the same is returned by Host app with isPermissionGranted values updated (Value returned after user responded to the list of permissions)

  • Declaration

    Swift

    public static func < (lhs: MASDKCustomPermissionModel, rhs: MASDKCustomPermissionModel) -> Bool
  • Static func that will be used for Equatable

    Declaration

    Swift

    public static func == (lhs: MASDKCustomPermissionModel, rhs: MASDKCustomPermissionModel) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Name of the Custom permission that is requested

    Declaration

    Swift

    public var permissionName: MiniAppCustomPermissionType
  • Current status of the Custom permissions

    Declaration

    Swift

    public var isPermissionGranted: MiniAppCustomPermissionGrantedStatus
  • Description for the respective custom permission

    Declaration

    Swift

    public var permissionDescription: String?