Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
/ KCEF Public archive
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Bug: Unable to add app handler? #13

@JR-Mitchell

Description

@JR-Mitchell

It is possible to call KCEF.init with a builder that has an app handler supplied, like:

KCEF.init(
    builder = {
        addAppHandler(myAppHandler)
    }
)

However, none of the overridden methods of myAppHandler appear to be called.

This appears to be because of the line at line 93 of KCEF.kt:

currentBuilder.addAppHandler(AppHandler)

While the name of addAppHandler seems to suggest that multiple app handlers can be added, by looking at its implementation in CefAppHandler.java it seems that this is not true, and any subsequent call to it will remove any previously set app handler.
So it looks like the issue may be that this call in KCEF.kt removes any app handler that is added in the builder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions