Variable CapacitorHelperConst CapacitorHelper : { callPlugin ( pluginName : string , method : string , args ?: unknown , ) : Promise < unknown > ; getPlatform () : string ; hapticImpact ( style ?: "medium" | "light" | "heavy" ) : Promise < void > ; hideSplashScreen () : Promise < void > ; hideStatusBar () : Promise < void > ; isCapacitor () : boolean ; isNative () : boolean ; setStatusBarStyle ( style : "dark" | "light" ) : Promise < void > ; vibrate () : Promise < void > ; } = ...
Type Declaration callPlugin : functioncallPlugin ( pluginName : string , method : string , args ?: unknown ) : Promise < unknown > Parameters pluginName : string method : string Optionalargs : unknown Returns Promise < unknown > hapticImpact : functionhapticImpact ( style ?: "medium" | "light" | "heavy" ) : Promise < void > Parameters style : "medium" | "light" | "heavy" = 'medium' Returns Promise < void > hideSplashScreen : functionhideSplashScreen () : Promise < void > hideStatusBar : functionhideStatusBar () : Promise < void > isCapacitor : functionisNative : functionsetStatusBarStyle : functionsetStatusBarStyle ( style : "dark" | "light" ) : Promise < void > vibrate : function
Helpers for Capacitor native integration. Uses globalThis.Capacitor which is injected by the Capacitor runtime. Capacitor plugins must be installed separately in the game project.
Usage: