One Logo Pool Ball
JavaScriptCore · IOS API REFERENCE

JSClassDefinition

struct · SDK 27.1

struct JSClassDefinition

Members (22)

get

attributes

TypeScript
get attributes(): number
Swift declaration
var attributes: JSClassAttributes
set

attributes

TypeScript
set attributes(value: number)
Swift declaration
var attributes: JSClassAttributes
get

className

TypeScript
get className(): (SDKHandle) | null
Swift declaration
var className: UnsafePointer<CChar>!
set

className

TypeScript
set className(value: (SDKHandle) | null)
Swift declaration
var className: UnsafePointer<CChar>!
get

convertToType

TypeScript
get convertToType(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: JSType, arg3: (SDKHandle) | null) => Promise<(SDKHandle) | null>)) | null
Swift declaration
var convertToType: JSObjectConvertToTypeCallback!
get

deleteProperty

TypeScript
get deleteProperty(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: (SDKHandle) | null, arg3: (SDKHandle) | null) => Promise<boolean>)) | null
Swift declaration
var deleteProperty: JSObjectDeletePropertyCallback!
get

finalize

TypeScript
get finalize(): (((arg0: (SDKHandle) | null) => Promise<void>)) | null
Swift declaration
var finalize: JSObjectFinalizeCallback!
get

getProperty

TypeScript
get getProperty(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: (SDKHandle) | null, arg3: (SDKHandle) | null) => Promise<(SDKHandle) | null>)) | null
Swift declaration
var getProperty: JSObjectGetPropertyCallback!
get

getPropertyNames

TypeScript
get getPropertyNames(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: (SDKHandle) | null) => Promise<void>)) | null
Swift declaration
var getPropertyNames: JSObjectGetPropertyNamesCallback!
get

hasInstance

TypeScript
get hasInstance(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: (SDKHandle) | null, arg3: (SDKHandle) | null) => Promise<boolean>)) | null
Swift declaration
var hasInstance: JSObjectHasInstanceCallback!
get

hasProperty

TypeScript
get hasProperty(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: (SDKHandle) | null) => Promise<boolean>)) | null
Swift declaration
var hasProperty: JSObjectHasPropertyCallback!
get

initialize

TypeScript
get initialize(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null) => Promise<void>)) | null
Swift declaration
var initialize: JSObjectInitializeCallback!
get

parentClass

TypeScript
get parentClass(): (SDKHandle) | null
Swift declaration
var parentClass: JSClassRef!
set

parentClass

TypeScript
set parentClass(value: (SDKHandle) | null)
Swift declaration
var parentClass: JSClassRef!
get

setProperty

TypeScript
get setProperty(): (((arg0: (SDKHandle) | null, arg1: (SDKHandle) | null, arg2: (SDKHandle) | null, arg3: (SDKHandle) | null, arg4: (SDKHandle) | null) => Promise<boolean>)) | null
Swift declaration
var setProperty: JSObjectSetPropertyCallback!
get

staticFunctions

TypeScript
get staticFunctions(): (SDKHandle) | null
Swift declaration
var staticFunctions: UnsafePointer<JSStaticFunction>!
set

staticFunctions

TypeScript
set staticFunctions(value: (SDKHandle) | null)
Swift declaration
var staticFunctions: UnsafePointer<JSStaticFunction>!
get

staticValues

TypeScript
get staticValues(): (SDKHandle) | null
Swift declaration
var staticValues: UnsafePointer<JSStaticValue>!
set

staticValues

TypeScript
set staticValues(value: (SDKHandle) | null)
Swift declaration
var staticValues: UnsafePointer<JSStaticValue>!
get

version

TypeScript
get version(): number
Swift declaration
var version: Int32
set

version

TypeScript
set version(value: number)
Swift declaration
var version: Int32
init

init

TypeScript
static init(): JSClassDefinition
Swift declaration
init()

Skipped declarations

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

JSClassDefinition.init(version:attributes:className:parentClass:staticValues:staticFunctions:initialize:finalize:hasProperty:getProperty:setProperty:deleteProperty:getPropertyNames:callAsFunction:callAsConstructor:hasInstance:convertToType:)

callback cannot propagate synchronous failure

JSClassDefinition.initialize

The iOS SDK compiler rejected this binding: a C function pointer can only be formed from a reference to a 'func' or a literal closure

JSClassDefinition.finalize

The iOS SDK compiler rejected this binding: a C function pointer can only be formed from a reference to a 'func' or a literal closure

JSClassDefinition.hasProperty

closure property answers its caller

JSClassDefinition.getProperty

closure property answers its caller

JSClassDefinition.setProperty

closure property answers its caller

JSClassDefinition.deleteProperty

closure property answers its caller

JSClassDefinition.getPropertyNames

The iOS SDK compiler rejected this binding: a C function pointer can only be formed from a reference to a 'func' or a literal closure

JSClassDefinition.callAsFunction

This output pointer cannot safely be represented by the bridge.

JSClassDefinition.callAsConstructor

This output pointer cannot safely be represented by the bridge.

JSClassDefinition.hasInstance

closure property answers its caller

JSClassDefinition.convertToType

closure property answers its caller

All JavaScriptCore types →