The Zebble Device API provides a convenient and consistent way for developers to invoke native functions on all platforms. They are all invoked in the format of:
In the above format Feature is a logical category for one or a number of specific native functions. For example for the Feature of "Location" we have a number of funcions such as GetCurrentPosition(), StartTracking(), etc.
If you want to add additional cross-platform functionality to Zebble, similar to the ones already implemented, then this articles explains how you can do it.
To add a new api feature called MyFeature, you need to do the following:
public partial class DeviceMyFeature
You can add one or more functions to your feature class. For each function (e.g. called MyFunction), you need to do the following: