NDEFRecord.mediaType

Draft

This page is not complete.

Secure context

This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The mediaType property ofthe NDEFRecord interface is USVString containing the MIME type of the record payload.

Syntax

NDEFRecord.mediaType

Value

A USVString, corresponding to a MIME type of the record payload.

Specifications

Specification Status Comment
Web NFC, NDEFRecord.mediaType Draft Initial definition.

Browser compatibility

BCD tables only load in the browser