One Logo Pool Ball
ShazamKit · IOS API REFERENCE

SHSession

class · iOS 15.0+ · SDK 27.1

class SHSession

Members (9)

init · iOS 15.0+

init

TypeScript
static init(): SHSession
Swift declaration
init()
init · iOS 15.0+

init

TypeScript
static initCatalog(catalog: SHCatalog): SHSession
Swift declaration
init(catalog: SHCatalog)
method · iOS 15.0+

match

TypeScript
match(signature: SHSignature): void
Swift declaration
func match(_ signature: SHSignature)
method · iOS 15.0+

matchStreamingBuffer

TypeScript
matchStreamingBuffer(buffer: _AVFAudio_AVAudioPCMBuffer, time?: (_AVFAudio_AVAudioTime) | null): void
Swift declaration
func matchStreamingBuffer(_ buffer: AVAudioPCMBuffer, at time: AVAudioTime?)
get · iOS 15.0+

catalog

TypeScript
get catalog(): SHCatalog
Swift declaration
var catalog: SHCatalog { get }
get · iOS 15.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any SHSessionDelegate)? { get set }
set · iOS 15.0+

delegate

TypeScript
set delegate(value: (Implements<SHSessionDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any SHSessionDelegate)? { get set }
method · iOS 16.0+

result

TypeScript
result(signature: SHSignature): Promise<SHSession_Result>
Swift declaration
func result(from signature: SHSignature) async -> SHSession.Result

Performs an asynchronous match with a signature you specify. - Parameters: - signature: The signature to match. - Returns: A ``SHSession/Result`` enum that indicates the result.

get · iOS 16.0+

results

TypeScript
get results(): SHSession_Results
Swift declaration
var results: SHSession.Results { get }

The results as an asynchronous sequence of matches.

Skipped declarations

No declarations were skipped in this snapshot.

All ShazamKit types →