Dev:Plankets

Plankets are widgets for PogoPlank and are developed using ObjC. They are currently only in developer alpha testing, but will be released soon as a private beta. Plankets began in version 2.0 with the idea of making widgets available on the iPhoneOS. Plankets come with an API that makes various MobileSubstrate hooks available at the call of a simple function, thereby making Plankets very easy for developers to create.

Usage
The Planket API comes with 3 headers, Planket.h PlankApp.h and PlankAPI.h, each serving a separate purpose. PlankAPI.h comes with several static functions for interacting with other Plankets. PlankApp.h is used to create an Application, similar to SBApplicationIcon. Planket.h is by far the most important header. This allows you to extend the Planket class and thereby create your own Planket.

Example code
Here is a very simple Planket using a PlankApp and a few PlankAPI functions:

MyPlanket.h

MyPlanket.mm

Plankets must have the extern C function PlanketInit and be linked with -lplank to ensure they are linked to libplank.dylib (included in PogoPlank).