react-native-apple-shazamkit
Version:
🎵 Powerful music recognition for React Native using Apple's ShazamKit. Identify songs, get metadata, and integrate with Apple Music seamlessly.
24 lines • 711 B
JavaScript
import { Platform } from "expo-modules-core";
import ExpoShazamKit from "./ExpoShazamKit";
export function isAvailable() {
return ExpoShazamKit.isAvailable();
}
export function hello() {
return ExpoShazamKit.hello();
}
export function helloWithName(name) {
return ExpoShazamKit.helloWithName(name);
}
export async function startListening(token) {
if (Platform.OS === "ios") {
return await ExpoShazamKit.startListening();
}
return await ExpoShazamKit.startListening(token);
}
export function stopListening() {
ExpoShazamKit.stopListening();
}
export async function addToShazamLibrary() {
return await ExpoShazamKit.addToShazamLibrary();
}
//# sourceMappingURL=index.js.map