MCNotificationConverter

public protocol MCNotificationConverter

Conforming to this protocol allows remote notifications to be converted to local notifications and triggers behavior.

  • convertToLocal(from:) Extension method

    This method creates a local notification from remote notifiation’s userInfo, if intended for MagicCloud. Implementation for this method should not be overwritten.

    Declaration

    Swift

    public func convertToLocal(from info: [AnyHashable: Any]) -> Bool

    Return Value

    If successful, then true. Else, false.