Interface SHSessionDelegate


  • public interface SHSessionDelegate
    All communication about matches is performed through this delegate. API-Since: 15.0
    • Method Detail

      • sessionDidFindMatch

        default void sessionDidFindMatch​(@NotNull
                                         @NotNull SHSession session,
                                         @NotNull
                                         @NotNull SHMatch match)
        A match was found in the @c SHCatalog for the provided @c SHSignature
        Parameters:
        session - The @c SHSession that made the match
        match - The @c SHMatch of the matching audio
      • sessionDidNotFindMatchForSignatureError

        default void sessionDidNotFindMatchForSignatureError​(@NotNull
                                                             @NotNull SHSession session,
                                                             @NotNull
                                                             @NotNull SHSignature signature,
                                                             @Nullable
                                                             @Nullable NSError error)
        The @c SHSignature did not match anything
        Parameters:
        session - The @c SHSession that attempted to match the @c SHSignature
        signature - The @c SHSignature that did not match
        error - An optional error. If simply no match was found this will be set to nil. It will be populated if there was an issue performing the match