You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
import { ImageResult, PlatformService } from "../PlatformService";
|
|
import { logger } from "../../utils/logger";
|
|
|
|
export class ElectronPlatformService implements PlatformService {
|
|
async readFile(_path: string): Promise<string> {
|
|
throw new Error("Not implemented");
|
|
}
|
|
|
|
async writeFile(_path: string, _content: string): Promise<void> {
|
|
throw new Error("Not implemented");
|
|
}
|
|
|
|
async deleteFile(_path: string): Promise<void> {
|
|
throw new Error("Not implemented");
|
|
}
|
|
|
|
async listFiles(_directory: string): Promise<string[]> {
|
|
throw new Error("Not implemented");
|
|
}
|
|
|
|
async takePicture(): Promise<ImageResult> {
|
|
logger.error("takePicture not implemented in Electron platform");
|
|
throw new Error("Not implemented");
|
|
}
|
|
|
|
async pickImage(): Promise<ImageResult> {
|
|
logger.error("pickImage not implemented in Electron platform");
|
|
throw new Error("Not implemented");
|
|
}
|
|
|
|
isCapacitor(): boolean {
|
|
return false;
|
|
}
|
|
|
|
isElectron(): boolean {
|
|
return true;
|
|
}
|
|
|
|
isPyWebView(): boolean {
|
|
return false;
|
|
}
|
|
|
|
isWeb(): boolean {
|
|
return false;
|
|
}
|
|
|
|
async handleDeepLink(_url: string): Promise<void> {
|
|
logger.error("handleDeepLink not implemented in Electron platform");
|
|
throw new Error("Not implemented");
|
|
}
|
|
}
|
|
|