Gets the underlying batch.

import Batch = require("nativescript-batch");

var b = Batch.newBatch(function(ctx) {
    console.log("Batch ID: " + ctx.batch.id);
});

b.batch.id = "MyBatch";

b.start();