ndef-lib/index.js
function (mimeType, payload, id) {
        if (!id) { id = []; }
        return ndef.record(ndef.TNF_MIME_MEDIA, mimeType, id, payload);
    }
function (mimeType, payload, id) {
        if (!id) { id = []; }
        return ndef.record(ndef.TNF_MIME_MEDIA, mimeType, id, payload);
    }
function ( mimeType , payload , id ) { if ( ! id ) { id = [ ] ; } return ndef . record ( ndef . TNF_MIME_MEDIA , mimeType , id , payload ) ; }
Helper that creates a NDEF record containing an mimeMediaRecord.

@mimeType String
@payload byte[]
@id byte[] (optional)
Helper that creates a NDEF record containing an mimeMediaRecord .