HubFilters
public struct HubFilters
Convenience filters for common filtering use cases
-
Returns a HubFilter that is
true
if the event’scontext
property has a UUID that matchesoperation.id
Declaration
Swift
public static func forOperation<Request: AmplifyOperationRequest, Success, Failure: AmplifyError> (_ operation: AmplifyOperation<Request, Success, Failure>) -> HubFilter
Parameters
operation
The operation to match
-
Declaration
Swift
public static func forEventName(_ eventName: HubPayloadEventName) -> HubFilter