forked from akai/readest
@@ -33,6 +33,11 @@ export interface SetSystemUIVisibilityResponse {
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface GetStatusBarHeightResponse {
|
||||
height: number;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export async function copyURIToPath(request: CopyURIRequest): Promise<CopyURIResponse> {
|
||||
const result = await invoke<CopyURIResponse>('plugin:native-bridge|copy_uri_to_path', {
|
||||
payload: request,
|
||||
@@ -67,3 +72,10 @@ export async function setSystemUIVisibility(
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getStatusBarHeight(): Promise<GetStatusBarHeightResponse> {
|
||||
const result = await invoke<GetStatusBarHeightResponse>(
|
||||
'plugin:native-bridge|get_status_bar_height',
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user