Package org.robovm.apple.spritekit
Class SKNode
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIResponder
org.robovm.apple.spritekit.SKNode
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,UIActivityItemsConfigurationProviding,UIFocusEnvironment,UIFocusItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIUserActivityRestoring,ObjCProtocol
- Direct Known Subclasses:
SK3DNode,SKAudioNode,SKCameraNode,SKCropNode,SKEffectNode,SKEmitterNode,SKFieldNode,SKLabelNode,SKLightNode,SKReferenceNode,SKShapeNode,SKSpriteNode,SKTileMapNode,SKTransformNode,SKVideoNode
public class SKNode extends UIResponder implements NSSecureCoding, UIFocusItem
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSKNode.SKNodePtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description SKNode()protectedSKNode(long handle)Deprecated.SKNode(File file)SKNode(String filename)SKNode(String filename, NSSet<?> classes)SKNode(NSCoder coder)protectedSKNode(NSObject.Handle h, long handle)protectedSKNode(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
Method Details
-
getFrame
- Specified by:
getFramein interfaceUIFocusItem
-
getPosition
-
setPosition
-
getZPosition
public double getZPosition() -
setZPosition
public void setZPosition(double v) -
getZRotation
public double getZRotation() -
setZRotation
public void setZRotation(double v) -
getXScale
public double getXScale() -
setXScale
public void setXScale(double v) -
getYScale
public double getYScale() -
setYScale
public void setYScale(double v) -
getSpeed
public double getSpeed() -
setSpeed
public void setSpeed(double v) -
getAlpha
public double getAlpha() -
setAlpha
public void setAlpha(double v) -
isPaused
public boolean isPaused() -
setPaused
public void setPaused(boolean v) -
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean v) -
isUserInteractionEnabled
public boolean isUserInteractionEnabled() -
setUserInteractionEnabled
public void setUserInteractionEnabled(boolean v) -
getFocusBehavior
- Since:
- Available in iOS 11.0 and later.
-
setFocusBehavior
- Since:
- Available in iOS 11.0 and later.
-
getParent
-
getChildren
-
getName
-
setName
-
getScene
-
getPhysicsBody
-
setPhysicsBody
-
getUserData
-
setUserData
-
getReachConstraints
-
setReachConstraints
-
getConstraints
-
setConstraints
-
getAttributeValues
Deprecated.Deprecated in iOS 10.0.- Since:
- Available in iOS 10.0 and later.
-
setAttributeValues
Deprecated.Deprecated in iOS 10.0.- Since:
- Available in iOS 10.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
canBecomeFocused
public boolean canBecomeFocused()- Specified by:
canBecomeFocusedin interfaceUIFocusItem
-
getFocusEffect
- Specified by:
getFocusEffectin interfaceUIFocusItem- Since:
- Available in iOS 15.0 and later.
-
getFocusGroupPriority
public long getFocusGroupPriority()- Specified by:
getFocusGroupPriorityin interfaceUIFocusItem- Since:
- Available in iOS 15.0 and later.
-
isTransparentFocusItem
public boolean isTransparentFocusItem()- Specified by:
isTransparentFocusItemin interfaceUIFocusItem- Since:
- Available in iOS 15.0 and later.
-
getPreferredFocusEnvironments
- Specified by:
getPreferredFocusEnvironmentsin interfaceUIFocusEnvironment
-
getParentFocusEnvironment
- Specified by:
getParentFocusEnvironmentin interfaceUIFocusEnvironment- Since:
- Available in iOS 12.0 and later.
-
getFocusItemContainer
- Specified by:
getFocusItemContainerin interfaceUIFocusEnvironment- Since:
- Available in iOS 12.0 and later.
-
getPreferredFocusedView
Deprecated.Deprecated in iOS 10.0. Use preferredFocusEnvironments- Specified by:
getPreferredFocusedViewin interfaceUIFocusEnvironment- Since:
- Available in iOS 9.0 and later.
-
getFocusGroupIdentifier
- Specified by:
getFocusGroupIdentifierin interfaceUIFocusEnvironment- Since:
- Available in iOS 14.0 and later.
-
init
-
calculateAccumulatedFrame
-
valueForAttributeNamed
Deprecated.Deprecated in iOS 10.0.- Since:
- Available in iOS 10.0 and later.
-
setValue
Deprecated.Deprecated in iOS 10.0.- Since:
- Available in iOS 10.0 and later.
-
setScale
public void setScale(double scale) -
addChild
-
insertChild
-
removeChildren
-
removeAllChildren
public void removeAllChildren() -
removeFromParent
public void removeFromParent() -
moveToParent
- Since:
- Available in iOS 9.0 and later.
-
getChild
-
enumerateChildNodes
-
findNodesByName
-
isInParentHierarchy
-
runAction
-
runAction
-
runAction
-
hasActions
public boolean hasActions() -
getAction
-
removeAction
-
removeAllActions
public void removeAllActions() -
containsPoint
-
getNodeAtPoint
-
getNodesAtPoint
-
convertPointFromNode
-
convertPointToNode
-
intersectsNode
-
equalsTo
-
create
-
create
- Since:
- Available in iOS 12.0 and later.
-
encode
-
didHintFocusMovement
- Specified by:
didHintFocusMovementin interfaceUIFocusItem- Since:
- Available in iOS 12.0 and later.
-
setNeedsFocusUpdate
public void setNeedsFocusUpdate()- Specified by:
setNeedsFocusUpdatein interfaceUIFocusEnvironment
-
updateFocusIfNeeded
public void updateFocusIfNeeded()- Specified by:
updateFocusIfNeededin interfaceUIFocusEnvironment
-
shouldUpdateFocus
- Specified by:
shouldUpdateFocusin interfaceUIFocusEnvironment
-
didUpdateFocus
- Specified by:
didUpdateFocusin interfaceUIFocusEnvironment
-