One Logo Pool Ball
SceneKit · IOS API REFERENCE

SCNSceneSource

class · SDK 27.1

class SCNSceneSource

Members (8)

method

identifiersOfEntries

TypeScript
identifiersOfEntries(entryClass: string): Array<string>
Swift declaration
func identifiersOfEntries(withClass entryClass: AnyClass) -> [String]
init

init

TypeScript
static initDataOptions(data: ArrayBuffer, options?: (NativeMap<SCNSceneSource_LoadingOption, unknown>) | null): (SCNSceneSource) | null
Swift declaration
init?(data: Data, options: [SCNSceneSource.LoadingOption : Any]? = nil)
init

init

TypeScript
static initUrlOptions(url: string, options?: (NativeMap<SCNSceneSource_LoadingOption, unknown>) | null): (SCNSceneSource) | null
Swift declaration
init?(url: URL, options: [SCNSceneSource.LoadingOption : Any]? = nil)
method

property

TypeScript
property(key: string): (unknown) | null
Swift declaration
func property(forKey key: String) -> Any?
method

scene

TypeScript
sceneOptions(options?: (NativeMap<SCNSceneSource_LoadingOption, unknown>) | null): SCNScene
Swift declaration
func scene(options: [SCNSceneSource.LoadingOption : Any]? = nil) throws -> SCNScene
method

scene

TypeScript
sceneOptionsStatusHandler(options?: (NativeMap<SCNSceneSource_LoadingOption, unknown>) | null, statusHandler?: (((arg0: number, arg1: SCNSceneSourceStatus, arg2: (NativeError) | null, arg3: NativeOut<boolean>) => void)) | null): (SCNScene) | null
Swift declaration
func scene(options: [SCNSceneSource.LoadingOption : Any]? = nil, statusHandler: SCNSceneSourceStatusHandler? = nil) -> SCNScene?
get

data

TypeScript
get data(): (ArrayBuffer) | null
Swift declaration
var data: Data? { get }
get

url

TypeScript
get url(): (string) | null
Swift declaration
var url: URL? { get }

Skipped declarations

3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SCNSceneSource.entryWithIdentifier(_:withClass:)

Passing a Swift type itself is not supported.

SCNSceneSource.entries(passingTest:)

callback cannot propagate synchronous failure

SCNSceneSource.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

All SceneKit types →