NativeDataExt

Added in 1.0.0-alpha11

public final class NativeDataExt


Summary

Public methods

static final @NonNull NativeData

Returns a NativeData class containing pointers to native resources if available.

Public methods

getNativeData

@UnstableNativeResourceApi
public static final @NonNull NativeData getNativeData(@NonNull Session receiver)

Returns a NativeData class containing pointers to native resources if available. This is a dangerous API and can put the JXR Session in a bad state if used incorrectly.

The pointers are owned by the ARCore runtime and should only be used to access APIs only available in the native C++ spec for the relevant runtime. Any lifecycle events should be handled only by the ARCore runtime.

Throws
IllegalStateException

if the session is not using a runtime backed by a native session or the session has been destroyed.