FlutterWebXrPlatform class abstract
Abstract class defining the interface for FlutterWebXrPlatform.
This class provides a set of methods that should be implemented by platform-specific implementations, enabling XR capabilities for Flutter applications.
- Inheritance
-
- Object
- PlatformInterface
- FlutterWebXrPlatform
- Implementers
Constructors
- FlutterWebXrPlatform()
- Default constructor for the platform interface.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createCone(
{required double radius, required double height, List< MeshBasicMaterial> ? materials}) → Mesh - Creates a cone using the given radius, height, and materials.
-
createCube(
{required double sideLength, List< MeshBasicMaterial> ? materials}) → Mesh - Creates a cube with the specified side length and materials.
-
createHeart(
{required int color}) → Mesh - Generates a 3D heart shape with the specified color.
-
createObject(
dynamic geometry, [List< MeshBasicMaterial> ? materials, Map<String, dynamic> ? options]) → Mesh - Creates a 3D object using the provided geometry and materials.
-
endSession(
) → Future< void> - Ends a WebXR session.
-
getBatteryLevel(
) → Future< double> - Retrieves the battery level of the device.
-
getPlatformVersion(
) → String? - Returns the platform version.
-
isWebXrAvailable(
) → bool - Checks if WebXR is available on the platform.
-
jsPrint(
dynamic message) → void - Prints a message to the JavaScript console.
-
loadGLTFModel(
String path) → Future< void> - Loads a 3D model in GLTF format from the provided path.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openWindow(
String url) → void - Opens a new browser window or tab with the specified URL.
-
startSession(
) → Future< void> - Starts a WebXR session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterWebXrPlatform
-
Returns the current instance of the FlutterWebXrPlatform.
getter/setter pair