17 lines
408 B
Swift
17 lines
408 B
Swift
|
//
|
||
|
// OpenHomepageIntentHandler.swift
|
||
|
// Gemini-iOS
|
||
|
//
|
||
|
// Created by Shadowfacts on 10/2/21.
|
||
|
//
|
||
|
|
||
|
import Intents
|
||
|
|
||
|
class OpenHomepageIntentHandler: NSObject, OpenHomepageIntentHandling {
|
||
|
|
||
|
func handle(intent: OpenHomepageIntent, completion: @escaping (OpenHomepageIntentResponse) -> Void) {
|
||
|
completion(OpenHomepageIntentResponse(code: .continueInApp, userActivity: .homepage()))
|
||
|
}
|
||
|
|
||
|
}
|