INNER CODE UNIT · TypeScript
enter
OneSignal/react-native-onesignal · src/index.ts:187
export function enter(
activityId: string,
token: string,
handler: (result: object) => void = () => {},
) {
if (!isNativeModuleLoaded(RNOneSignal)) return;
if (Platform.OS === 'ios') {
RNOneSignal.enterLiveActivity(activityId, token, handler);
}
}
/**
* Indicate this device has exited a live activity, identified within OneSignal by the `activityId`.
*
* Only applies to iOS
*
* @deprecated Currently unsupported, avoid using this method.