GPKGConnectionFunction

Objective-C

@interface GPKGConnectionFunction : NSObject

Swift

class GPKGConnectionFunction : NSObject

GeoPackage connection function wrapper

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithFunction:(void *)function
                            withName:(NSString *)name
                          andNumArgs:(int)numArgs;

    Swift

    init!(function: UnsafeMutableRawPointer!, withName name: String!, andNumArgs numArgs: Int32)

    Parameters

    function

    connection function

    name

    function name

    numArgs

    number of function arguments

    Return Value

    new connection function

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithFunction:(void *)function
                            withName:(NSString *)name
                          andNumArgs:(int)numArgs
                         andUserData:(NSObject *)userData;

    Swift

    init!(function: UnsafeMutableRawPointer!, withName name: String!, andNumArgs numArgs: Int32, andUserData userData: NSObject!)

    Parameters

    function

    connection function

    name

    function name

    numArgs

    number of function arguments

    userData

    user data

    Return Value

    new connection function

  • Get the function

    Declaration

    Objective-C

    - (void *)function;

    Swift

    func function() -> UnsafeMutableRawPointer!

    Return Value

    function

  • Get the function name

    Declaration

    Objective-C

    - (NSString *)name;

    Swift

    func name() -> String!

    Return Value

    function name

  • Get the number of function arguments

    Declaration

    Objective-C

    - (int)numArgs;

    Swift

    func numArgs() -> Int32

    Return Value

    function arguments count

  • Get the user data

    Declaration

    Objective-C

    - (NSObject *)userData;

    Swift

    func userData() -> NSObject!

    Return Value

    user data