Skip to content

CampAPI Docs

CampAPI is an Android mod APIs for LeviLaunchroid.

What you can do with CampAPI

  • listen to screen, input, client instance, and resource-pack events
  • cancel actions before they continue
  • change splash text and other render-facing output
  • use native helpers such as getLibBase() and getVtableClass()
  • create JavaScript mods with a manifest and an entry file
  • import other mods by namespace when they are exported
  • use logging, timers, fetch, mod-info helpers, and signature scan helpers in JS

Tiny examples

Cancel a screen render hook

cpp
CampAPI::ModuleScope scope;

scope.AddListener<BeforeRenderScreenEvent>([](BeforeRenderScreenEvent& event) {
    event.Cancel();
});

A minimal JS mod manifest

json
{
  "name": "Example Mod",
  "author": "Alvin",
  "version": "1.0.0",
  "namespace": "example",
  "export": true,
  "entry": "index.js"
}