Files
stats/packages/sdk-native/index.ts
2024-01-12 11:31:46 +01:00

22 lines
464 B
TypeScript

import type { NewMixanOptions } from '@mixan/sdk';
import { Mixan } from '@mixan/sdk';
export class MixanNative extends Mixan {
constructor(options: NewMixanOptions) {
super(options);
}
init(properties?: Record<string, unknown>) {
super.init({
...(properties ?? {}),
});
}
screenView(route: string, properties?: Record<string, unknown>): void {
super.event('screen_view', {
...properties,
route: route,
});
}
}