How to use the askForPhotosAccess function from bindings

Find comprehensive JavaScript bindings.askForPhotosAccess code examples handpicked from public code repositorys.

46
47
48
49
50
51
52
53
54
55
function askForPhotosAccess(accessLevel = 'add-only') {
  if (!['add-only', 'read-write'].includes(accessLevel)) {
    throw new TypeError(`${accessLevel} must be one of either 'add-only' or 'read-write'`)
  }

  return permissions.askForPhotosAccess.call(this, accessLevel)
}

module.exports = {
  askForAccessibilityAccess: permissions.askForAccessibilityAccess,
fork icon31
star icon127
watch icon0

+ 3 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)