Package apple.shazamkit.protocol
Interface SHSessionDelegate
-
public interface SHSessionDelegateAll communication about matches is performed through this delegate. API-Since: 15.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsessionDidFindMatch(@NotNull SHSession session, @NotNull SHMatch match)A match was found in the @c SHCatalog for the provided @c SHSignaturedefault voidsessionDidNotFindMatchForSignatureError(@NotNull SHSession session, @NotNull SHSignature signature, @Nullable NSError error)The @c SHSignature did not match anything
-
-
-
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 matchmatch- 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 SHSignaturesignature- The @c SHSignature that did not matcherror- 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
-
-