matrix-react-sdk
Version:
SDK for matrix.org using React
15 lines (14 loc) • 672 B
TypeScript
import { MatrixClient, IEventRelation } from "matrix-js-sdk/src/matrix";
export declare enum LocationShareType {
Own = "Own",
Pin = "Pin",
Live = "Live"
}
export type LocationShareProps = {
timeout?: number;
uri?: string;
timestamp?: number;
};
export type ShareLocationFn = (props: LocationShareProps) => Promise<void>;
export declare const shareLiveLocation: (client: MatrixClient, roomId: string, displayName: string, openMenu: () => void) => ShareLocationFn;
export declare const shareLocation: (client: MatrixClient, roomId: string, shareType: LocationShareType, relation: IEventRelation | undefined, openMenu: () => void) => ShareLocationFn;