NACCShowCleantimeIntentHandler
class NACCShowCleantimeIntentHandler : INExtension, ShowCleantimeIntentHandling
This intent will open the app, and set it to the given date. It always opens in the main screen.
-
This validates the cleandate. It must be a date between October 5, 1953, and now.
Declaration
Swift
func resolveCleandate(for inIntent: ShowCleantimeIntent, with inCompletion: @escaping (INDateComponentsResolutionResult) -> Void)
Parameters
for
The intent instance
with
A tail completion function, with a date resoultion.
-
This actually executes the intent.
Declaration
Swift
func handle(intent inIntent: ShowCleantimeIntent, completion inCompletion: @escaping (ShowCleantimeIntentResponse) -> Void)
Parameters
intent
The intent instance
completion
A tail completion function, with a response, containing the text of the report.