amplify-swift/Amplify/DevMenu/Trigger/TriggerRecognizer.swift

18 lines
475 B
Swift

//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#if canImport(UIKit)
import Foundation
/// A protocol to be implemented for recognizing user interaction events
/// which notifies a `TriggerDelegate` if it has one
public protocol TriggerRecognizer {
/// Update trigger delegate so that it can be notified in case a trigger happens
func updateTriggerDelegate(delegate: TriggerDelegate)
}
#endif