2.1.2 • Published 3 years ago

zombiebox-extension-about v2.1.2

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

zombiebox-extension-about

ZombieBox extension for displaying main info about an application.

Usage

The extension provides popup About that should be integrated to the application. To do this, call About.processKey with the given key in main processKey method:

import About from 'about/about';
import BaseApplication from 'generated/zb/base-application';

/**
*/
export default class Application extends BaseApplication {
    /**
     * @override
     */
    processKey(zbKey, e) {
	    About.processKey(zbKey);

	    return super.processKey(zbKey, e);
	}
}

To display the information about the application press 1235789 (like Z) on the remote.

Custom key sequence

The default key sequence can be changed by calling About.setKeySequence method:

About.setKeySequence([
	Keys.DIGIT_1,
	Keys.DIGIT_2,
	Keys.DIGIT_3,
]);

Passing custom information

There is an ability to customize the displayed information. To do this, call About.setCustomDataProvider with a new function-provider:

About.setCustomDataProvider((defaultData) => {
	defaultData['apiVersion'] = app.getApiVersion();
	
	return defaultData;
});

Note: a new key must be defined by bracket notation.

2.1.2

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

5 years ago

2.0.0-alpha.4

5 years ago

2.0.0-alpha.3

5 years ago

2.0.0-alpha.2

5 years ago

2.0.0-alpha.1

5 years ago

1.0.0

5 years ago

0.4.0

5 years ago

0.3.0

6 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

9 years ago