UNPKG

realm

Version:

Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores

24 lines (23 loc) 826 B
import { binding } from "../internal"; /** * Authentication provider where users identify using an API-key. */ export declare class PushClient { /** @internal */ private user; /** @internal */ internal: binding.PushClient; /** @internal */ constructor(user: binding.SyncUser, internal: binding.PushClient); /** * Register this device with the user. * @param token - A Firebase Cloud Messaging (FCM) token, retrieved via the firebase SDK. * @returns A promise that resolves once the device has been registered. */ register(token: string): Promise<void>; /** * Deregister this device with the user, to disable sending messages to this device. * @returns A promise that resolves once the device has been deregistered. */ deregister(): Promise<void>; }