Swift SDK Version

Permission

publicstructPermission
Represents a Graph API permission. Each permission has its own set of requirements and suggested use cases. See a full list at https://developers.facebook.com/docs/facebook-login/permissions
  • Name of the permission.

    Declaration

    Swift
    publicletname:String
  • Create a permission with a string value.

    Declaration

    Swift
    publicinit(name:String)

    Parameters

    name
    Name of the permission.
  • The hash value.

    Declaration

    Swift
    publicvarhashValue:Int{get}
  • Compare two Permissions for equality.

    Declaration

    Swift
    publicstaticfunc==(lhs:Permission,rhs:Permission)->Bool

    Parameters

    lhs
    The first permission to compare.
    rhs
    The second permission to compare.

    Return Value

    Whether or not the permissions are equal.