Frida Docs Unified
    Preparing search index...

    Interface Method<Holder, Params, Return>

    interface Method<
        Holder extends Members<Holder> = {},
        Params extends any[] = any[],
        Return = any,
    > {
        argumentTypes: default.Type[];
        canInvokeWith: (...args: any[]) => boolean;
        clone: (
            options: NativeFunctionOptions,
        ) => default.Method<Holder, Params, Return>;
        handle: NativePointer;
        holder: Wrapper<Holder>;
        implementation: MethodImplementation<Holder, Params, Return>;
        methodName: string;
        returnType: default.Type;
        type: MethodType;
        (...params: Params): Return;
    }

    Type Parameters

    • Holder extends Members<Holder> = {}
    • Params extends any[] = any[]
    • Return = any

    Hierarchy (View Summary)

    Index

    Properties

    argumentTypes: default.Type[]

    Method argument types.

    canInvokeWith: (...args: any[]) => boolean

    Queries whether the method may be invoked with a given argument list.

    clone: (
        options: NativeFunctionOptions,
    ) => default.Method<Holder, Params, Return>

    Makes a new method wrapper with custom NativeFunction options.

    Useful for e.g. setting traps: "all" to perform execution tracing in conjunction with Stalker.

    Pointer to the VM's underlying method object.

    holder: Wrapper<Holder>

    Class that this method belongs to.

    Implementation. Assign a new implementation to this property to replace the original implementation. Assign null at a future point to revert back to the original implementation.

    methodName: string

    Name of this method.

    returnType: default.Type

    Method return type.

    What kind of method this is, i.e. constructor vs static vs instance.