ctm.photo

The method of JS Bridge functionality is intended to enable the device camera. Use the ctm.getFile method to attach a photo to a record.

Query format

ctm.photo(handler)

Handler

Use a handler function to describe the output format of the query results, e.g., to display the results of operations or method errors for debugging purposes.

ctm.photo(handler)
ctm.photo( function(response){
    console.log('Result', response);
})

The result:

{
    "response": "/private/var/mobile/Containers/Data/Application/6404F6A1-0A03-434A-A1C9-CB189141BC45/tmp/photo (Monday, 15 July 2019 at 15:11:55 Moscow Standard Time).png"
}
``