Gets the underlying batch operation context.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
ctx.log("Hello!");
});
b.name = "Operation #1";
b.addLogger(function(ctx) {
console.log("[" + ctx.context.name + "] " + ctx.message);
});
b.start();