TimeRestrictionUIProtocol
public protocol TimeRestrictionUIProtocol
Time Restriction UI Protocol.
-
Returns an instance of the class conforming to
TimeRestrictionUIProtocol
protocolDeclaration
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
badge
The badge
restrictionsForToday
List of
TimeCondition
s for the current day. Use this optionally to tell the user at what times the badge can be used on the current day.completion
Completion 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()