react-native-ios-alarmkit
Version:
React Native wrapper for iOS AlarmKit framework
35 lines (34 loc) • 1.05 kB
TypeScript
import type { AlarmConfiguration as AlarmConfigurationType, AlarmPresentation, AlarmSchedule, CountdownDuration } from './types';
export interface TimerOptions {
duration: number;
attributes: {
presentation: AlarmPresentation;
metadata?: Record<string, string>;
tintColor?: string;
};
sound?: string;
}
export interface AlarmOptions {
schedule: AlarmSchedule;
attributes: {
presentation: AlarmPresentation;
metadata?: Record<string, string>;
tintColor?: string;
};
sound?: string;
}
export interface FullOptions {
countdownDuration: CountdownDuration;
schedule?: AlarmSchedule;
attributes: {
presentation: AlarmPresentation;
metadata?: Record<string, string>;
tintColor?: string;
};
sound?: string;
}
export declare const AlarmConfigurationFactory: {
timer(options: TimerOptions): AlarmConfigurationType;
alarm(options: AlarmOptions): AlarmConfigurationType;
create(options: FullOptions): AlarmConfigurationType;
};