Package org.robovm.apple.spritekit
Class SKTextureAtlas
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.spritekit.SKTextureAtlas
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class SKTextureAtlas extends NSObject implements NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SKTextureAtlas.SKTextureAtlasPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description SKTextureAtlas()
SKTextureAtlas(java.lang.String name)
SKTextureAtlas(java.util.Map<java.lang.String,?> textures)
Constructs a new texture atlas object from the specified texture files.SKTextureAtlas(NSCoder decoder)
protected
SKTextureAtlas(NSObject.Handle h, long handle)
protected
SKTextureAtlas(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static long
create(java.lang.String name)
protected static long
create(NSDictionary<NSString,?> properties)
void
encode(NSCoder coder)
SKTexture
getTexture(java.lang.String name)
java.util.List<java.lang.String>
getTextureNames()
protected long
init(NSCoder decoder)
void
preload(java.lang.Runnable completionHandler)
static void
preloadTextureAtlases(java.util.List<java.lang.String> atlasNames, org.robovm.objc.block.VoidBlock2<NSError,NSArray<SKTextureAtlas>> completionHandler)
static void
preloadTextureAtlases(NSArray<SKTextureAtlas> textureAtlases, java.lang.Runnable completionHandler)
static boolean
supportsSecureCoding()
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
SKTextureAtlas
public SKTextureAtlas()
-
SKTextureAtlas
protected SKTextureAtlas(NSObject.Handle h, long handle)
-
SKTextureAtlas
protected SKTextureAtlas(NSObject.SkipInit skipInit)
-
SKTextureAtlas
public SKTextureAtlas(java.lang.String name)
-
SKTextureAtlas
public SKTextureAtlas(NSCoder decoder)
-
SKTextureAtlas
public SKTextureAtlas(java.util.Map<java.lang.String,?> textures)
Constructs a new texture atlas object from the specified texture files.- Parameters:
properties
- The keys of this map represent the texture names. The associated values can be of type String, NSURL or UIImage.- Since:
- Available in iOS 8.0 and later.
-
-
Method Detail
-
getTextureNames
public java.util.List<java.lang.String> getTextureNames()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
getTexture
public SKTexture getTexture(java.lang.String name)
-
preload
public void preload(java.lang.Runnable completionHandler)
-
create
protected static long create(java.lang.String name)
-
create
protected static long create(NSDictionary<NSString,?> properties)
- Since:
- Available in iOS 8.0 and later.
-
preloadTextureAtlases
public static void preloadTextureAtlases(NSArray<SKTextureAtlas> textureAtlases, java.lang.Runnable completionHandler)
-
preloadTextureAtlases
public static void preloadTextureAtlases(java.util.List<java.lang.String> atlasNames, org.robovm.objc.block.VoidBlock2<NSError,NSArray<SKTextureAtlas>> completionHandler)
- Since:
- Available in iOS 9.0 and later.
-
init
protected long init(NSCoder decoder)
-
-