TimeRestrictionUIProtocol
public protocol TimeRestrictionUIProtocol
Time Restriction UI Protocol.
-
Returns an instance of the class conforming to
TimeRestrictionUIProtocolprotocolDeclaration
Swift
static func instance() -> TimeRestrictionUIProtocol? -
Informs the user that the badge is restricted and cannot be used at the current time.
See also
Declaration
Swift
func informUserOfTimeOfDayNonCompliance(_ badge: Badge, restrictionsForToday: [TimeCondition]?, completion: @escaping () -> Void)Parameters
badgeThe badge
restrictionsForTodayList of
TimeConditions for the current day. Use this optionally to tell the user at what times the badge can be used on the current day.completionCompletion block to call once the user have been notified and the UI can be dismissed.
-
Dismiss any UI presented by the
informUserOfTimeOfDayNonCompliance(_:restrictionsForToday:completion:).Declaration
Swift
func dismiss()
TimeRestrictionUIProtocol Protocol Reference