UNPKG

fcr-core

Version:

Core APIs for building online scenes

16 lines (15 loc) 613 B
import { FcrPlatform } from '../type'; export declare class FcrRoomCache { private _platformMapByUserId; private _avatarMapByUserId; getUserPlatform: (userId: string) => FcrPlatform | undefined; getUserAvatar: (userId: string) => string | undefined; setUserPlatform: (userId: string, platform: FcrPlatform) => void; setUserAvatar: (userId: string, avatar: string) => void; deleteUserPlatform: (userId: string) => void; deleteUserAvatar: (userId: string) => void; } export declare class FcrSharedCache { private _roomCache; getRoomCache: (roomId: string) => FcrRoomCache; }