UNPKG

fcr-core

Version:

Core APIs for building online scenes

36 lines (35 loc) 1.88 kB
import { FcrObjectForgeInitConfig } from '../type'; import { AgoraRteScene } from '../../../imports'; import type { RTMClient } from 'agora-rtm'; import { FcrCoreServiceApi } from '../../../service/api'; import { FcrSharedCache } from '../../shared-cache'; import { FcrBoardConfig, FcrStandaloneWhiteboardControl, FcrWhiteboardControl, FcrWhiteboardObserver } from './type'; import { FcrBaseWhiteboardControlImpl } from '../base'; import { FcrBoardActiveInfo } from '../../whiteboard-control/type'; import { WhiteboardOption } from '@netless/forge-whiteboard'; export declare class FcrWhiteboardControlImpl extends FcrBaseWhiteboardControlImpl<FcrWhiteboardObserver> implements FcrWhiteboardControl { private _scene; private _api; protected logger: import("agora-foundation/lib/logger/type").Logger; private _roomCache; private _backgroundColor; private _isActive; private _ownerId; private _notifyObservers; constructor(rtmClient: RTMClient, config: FcrBoardConfig, hasOperationPrivilege: boolean, sharedCache: FcrSharedCache, forgeInitConfigFetcher: () => Promise<FcrObjectForgeInitConfig>, _scene: AgoraRteScene, _api: FcrCoreServiceApi); active(): Promise<void>; inactive(): Promise<void>; getBoardActiveInfo(): FcrBoardActiveInfo; setBackgroundColor(backgroundColor: string): Promise<void>; getBackgroundColor(): string; getActivity(): boolean; getOwnerId(): string | null; protected getApplicationId(): string; private _onScenePropertiesUpdated; protected getWhiteboardOption(): WhiteboardOption; protected addLogObserver(): void; } export declare class FcrStandaloneWhiteboardControlImpl extends FcrBaseWhiteboardControlImpl<FcrWhiteboardObserver> implements FcrStandaloneWhiteboardControl { protected getApplicationId(): string; protected getWhiteboardOption(): WhiteboardOption; }