Also rename internal "utis" functions
This commit is contained in:
@@ -90,7 +90,7 @@ class PrintManager {
|
||||
* List of all printable document types (utis).
|
||||
*/
|
||||
@NonNull
|
||||
static JSONArray getPrintableUTIs()
|
||||
static JSONArray getPrintableTypes()
|
||||
{
|
||||
JSONArray utis = new JSONArray();
|
||||
|
||||
|
@@ -65,9 +65,9 @@ public class Printer extends CordovaPlugin {
|
||||
{
|
||||
check(args.optString(0), callback);
|
||||
}
|
||||
else if (action.equalsIgnoreCase("utis"))
|
||||
else if (action.equalsIgnoreCase("types"))
|
||||
{
|
||||
utis(callback);
|
||||
types(callback);
|
||||
}
|
||||
else if (action.equalsIgnoreCase("print"))
|
||||
{
|
||||
@@ -101,10 +101,10 @@ public class Printer extends CordovaPlugin {
|
||||
*
|
||||
* @param callback The plugin function to invoke with the result.
|
||||
*/
|
||||
private void utis (CallbackContext callback)
|
||||
private void types (CallbackContext callback)
|
||||
{
|
||||
cordova.getThreadPool().execute(() -> {
|
||||
JSONArray utis = PrintManager.getPrintableUTIs();
|
||||
JSONArray utis = PrintManager.getPrintableTypes();
|
||||
|
||||
PluginResult res = new PluginResult(
|
||||
Status.OK, utis);
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
- (void) check:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
- (void) utis:(CDVInvokedUrlCommand *)command;
|
||||
- (void) types:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
- (void) pick:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
|
@@ -52,7 +52,7 @@
|
||||
/*
|
||||
* List all printable document types (utis).
|
||||
*/
|
||||
- (void) utis:(CDVInvokedUrlCommand *)command
|
||||
- (void) types:(CDVInvokedUrlCommand *)command
|
||||
{
|
||||
[self.commandDelegate runInBackground:^{
|
||||
NSSet *utis = UIPrintInteractionController.printableUTIs;
|
||||
|
@@ -60,7 +60,7 @@ exports.check = function (success, fail, args) {
|
||||
*
|
||||
* @return [ Void ]
|
||||
*/
|
||||
exports.utis = function (success, fail, args) {
|
||||
exports.types = function (success, fail, args) {
|
||||
success([]);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user