Giter Site home page Giter Site logo

snowboard-preset-example-plugin's Introduction

SnowBoard Preset Example Plugin

SnowBoard Preset Example Plugin

Add the "SnowBoardPresetProtocol.h" file to your tweak, and create a new class conforming to this protocol as shown in the example "Tweak.xm" file.

@protocol SnowBoardPresetProtocol <NSObject>

@required

@optional

// plistPath
// If this is set, SnowBoard will copy this plist into any newly saved preset when it is created.
// When a preset is selected, it will then copy it out of the preset and overwrite this file (If it exists in the preset).
// Return the plist path from this method
-(NSString*) plistPath;

// presetDidChange
// These are called when a preset is selected and applied, you can notify your tweak here to make any changes you need
// with the new settings
-(void) presetDidChange;
-(void) presetDidChangeToPreset:(NSString*) presetPath;

// savedNewPresetToPath
// Called when a new preset is created and includes the path to the preset
-(void) savedNewPresetToPath:(NSString*) presetPath;

// deletedPresetAtPath
// Called when a preset is deleted and includes the path to the preset
-(void) deletedPresetAtPath:(NSString*) presetPath;

// isDisabled
// Set this if you want to temporarily prevent your tweak integrating with SnowBoard Presets
// E.g. add a settings option to "Update with SnowBoard Presets"
-(BOOL) isDisabled;

@end

snowboard-preset-example-plugin's People

Stargazers

 avatar Apple_Nati0n avatar

Watchers

James Cloos avatar Spark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.