| Modifier and Type | Class and Description |
|---|---|
static interface |
ARSession.Block_getCurrentWorldMapWithCompletionHandler |
static interface |
ARSession.Block_trackedRaycastUpdateHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
ARSession(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addAnchor(ARAnchor anchor)
Adds an anchor to the session.
|
static ARSession |
alloc() |
static ARSession |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
ARConfiguration |
configuration()
The configuration currently being used by the session.
|
ARFrame |
currentFrame()
The current frame of the session.
|
static java.lang.String |
debugDescription_static() |
ARSessionDelegate |
delegate()
A delegate for receiving ARSession updates.
|
NSObject |
delegateQueue()
The dispatch queue on which the delegate calls are performed.
|
static java.lang.String |
description_static() |
void |
getCurrentWorldMapWithCompletionHandler(ARSession.Block_getCurrentWorldMapWithCompletionHandler completionHandler)
Copies the current state of the world being tracked by the session.
|
static long |
hash_static() |
NSUUID |
identifier()
Unique identifier of the running session.
|
ARSession |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static ARSession |
new_objc() |
void |
pause()
Pauses the session.
|
NSArray<? extends ARRaycastResult> |
raycast(ARRaycastQuery query)
Perform a raycast.
|
void |
removeAnchor(ARAnchor anchor)
Removes an anchor from the session.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
runWithConfiguration(ARConfiguration configuration)
Runs the session with the provided configuration.
|
void |
runWithConfigurationOptions(ARConfiguration configuration,
long options)
Runs the session with the provided configuration and options.
|
void |
setDelegate_unsafe(ARSessionDelegate value)
A delegate for receiving ARSession updates.
|
void |
setDelegate(ARSessionDelegate value)
A delegate for receiving ARSession updates.
|
void |
setDelegateQueue(NSObject value)
The dispatch queue on which the delegate calls are performed.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
ARTrackedRaycast |
trackedRaycastUpdateHandler(ARRaycastQuery query,
ARSession.Block_trackedRaycastUpdateHandler updateHandler)
Perform a tracked raycast.
|
void |
updateWithCollaborationData(ARCollaborationData collaborationData)
Update session with collaboration data.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public void addAnchor(ARAnchor anchor)
The anchor will be added in the next frame update.
anchor - The anchor to add.public static ARSession alloc()
public static ARSession allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public ARConfiguration configuration()
public ARFrame currentFrame()
public static java.lang.String debugDescription_static()
public ARSessionDelegate delegate()
public NSObject delegateQueue()
If not provided or nil, delegate calls will be performed on the main queue.
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static ARSession new_objc()
public void pause()
Once paused, no more updates will be received from the session until run is called again.
public void removeAnchor(ARAnchor anchor)
The anchor will be removed from subsequent frame updates.
anchor - The anchor to remove.public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void runWithConfiguration(ARConfiguration configuration)
Calling run on a session that has already started will transition immediately to using the new configuration.
configuration - The configuration to use.public void runWithConfigurationOptions(ARConfiguration configuration, long options)
Calling run on a session that has already started will transition immediately to using the new configuration. Options can be used to alter the default behavior when transitioning configurations.
configuration - The configuration to use.options - The run options to use.public void setDelegate_unsafe(ARSessionDelegate value)
public void setDelegate(ARSessionDelegate value)
public void setDelegateQueue(NSObject value)
If not provided or nil, delegate calls will be performed on the main queue.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void getCurrentWorldMapWithCompletionHandler(ARSession.Block_getCurrentWorldMapWithCompletionHandler completionHandler)
A world map is only provided when running an ARWorldTrackingConfiguration.
completionHandler - The completion handler to call when the get has completed. This handler is executed
on the session's delegate queue. The completion handler takes the following parameters:
worldMap - The current world map or nil if unavailable.
error - An error that indicates why the world map is unavailable, or nil if a world map was provided.public NSUUID identifier()
The identifier may change after calling runWithConfiguration.
public NSArray<? extends ARRaycastResult> raycast(ARRaycastQuery query)
query - Raycast query used for raycasting.public ARTrackedRaycast trackedRaycastUpdateHandler(ARRaycastQuery query, ARSession.Block_trackedRaycastUpdateHandler updateHandler)
The session performs continuous raycasting and calls the update handler with the updated results. The ARTrackedRaycast object returned can be used to update the raycast with a new raycast query or stop raycasting.
query - Raycast query used for raycasting.updateHandler - update handler where updated list of results, sorted from nearest to farthest (in distance from
the camera) are delivered. updateHandler will be called on session's delegate queue.public void updateWithCollaborationData(ARCollaborationData collaborationData)
Use this to update the session with collaboration data received from other participants.
collaborationData - Collaboration data for updating the session.ARCollaborationData