0.0.3-alpha-1.5 • Published 5 months ago

capacitor-sim-pro v0.0.3-alpha-1.5

Weekly downloads
-
License
0BSD
Repository
github
Last release
5 months ago

Install

npm istall capacitor-sim-pro
npx cap sync

Android

Variables

This plugin will use the following project variables (defined in your app's variables.gradle file):

  • androidxCoreKTXVersion version of androidx.core:core-ktx (default: 1.10.0)
  • kotlin_version version of org.jetbrains.kotlin:kotlin-stdlib (default: 1.8.20)

Configuration

No configuration required for this plugin.

Demo

A working example can be found here: jonz94/capacitor-sim-demo

Usage

import { Sim } from 'capacitor-phonenumber-info';

const getSimCards = async () => {
  const { simCards } = await Sim.getSimCards();

  // console.log(simCards);

  return simCards;
}

API

getSimCards()

getSimCards() => Promise<GetSimCardsResult>

Get information from device's sim cards.

Returns: Promise<GetSimCardsResult>

Since: 1.0.0


checkPermissions()

checkPermissions() => Promise<PermissionStatus>

Check permission to get information from device's sim cards.

On iOS the status is always granted.

Returns: Promise<PermissionStatus>

Since: 1.0.0


requestPermissions()

requestPermissions() => Promise<PermissionStatus>

Request permission to get information from device's sim cards.

On iOS the status is always granted.

Returns: Promise<PermissionStatus>

Since: 1.0.0


Interfaces

GetSimCardsResult

PropType
simCardsSimCard[]

SimCard

PropTypeDescriptionSince
numberstringAndroid only: Phone number.1.0.0
allowsVOIPbooleaniOS only: If this carrier allows VOIP calls to be made on its network.1.0.0
carrierNamestringThe name of the cellular service provider.1.0.0
isoCountryCodestringCountry code for the cellular service provider, represented as an ISO 3166-1 country code string.1.0.0
mobileCountryCodestringMobile country code (MCC) for the cellular service provider, in its numeric representation.1.0.0
mobileNetworkCodestringMobile network code (MNC) for the cellular service provider, in its numeric representation.1.0.0

PermissionStatus

PropType
readSimCardPermissionState

Type Aliases

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'

Changelog

See CHANGELOG.md.

License

See LICENSE.

acornacorn-jsxadd-streamagent-baseajvansi-regexansi-stylesargparsearray-buffer-byte-lengtharray-ifyarray-includesarray-unionarray.prototype.findlastindexarray.prototype.flatarray.prototype.flatmaparraybuffer.prototype.slicearrifyastral-regexasynckitat-least-nodeavailable-typed-arraysbalanced-matchbrace-expansionbracesbuffer-fromcall-bindcall-bind-apply-helperscall-boundcallsitescamelcasecamelcase-keyschalkchevrotainchevrotain-allstarcliuicolor-convertcolor-namecolorettecombined-streamcompare-funcconcat-mapconcat-streamconventional-changelogconventional-changelog-angularconventional-changelog-atomconventional-changelog-codemirrorconventional-changelog-config-specconventional-changelog-conventionalcommitsconventional-changelog-coreconventional-changelog-emberconventional-changelog-eslintconventional-changelog-expressconventional-changelog-jqueryconventional-changelog-jshintconventional-changelog-preset-loaderconventional-changelog-writerconventional-commits-filterconventional-commits-parserconventional-recommended-bumpcore-util-iscross-spawncssstyledargsdata-urlsdata-view-bufferdata-view-byte-lengthdata-view-byte-offsetdateformatdebugdecamelizedecamelize-keysdecimal.jsdeep-isdefine-data-propertydefine-propertiesdelayed-streamdetect-indentdetect-newlinedir-globdoctrinedot-propdotgitignoredunder-protoeastasianwidthemoji-regexentitiesenv-pathserror-exes-abstractes-define-propertyes-errorses-object-atomses-set-tostringtages-shim-unscopableses-to-primitiveescaladeescape-string-regexpeslint-config-prettiereslint-import-resolver-nodeeslint-module-utilseslint-plugin-importeslint-scopeeslint-visitor-keysespreeesqueryesrecurseestraverseesutilsfast-deep-equalfast-globfast-json-stable-stringifyfast-levenshteinfastqfiguresfile-entry-cachefill-rangefind-upflat-cacheflattedfor-eachforeground-childform-datafs-extrafs.realpathfunction-bindfunction.prototype.namefunctions-have-namesget-caller-fileget-intrinsicget-pkg-repoget-protoget-stdinget-symbol-descriptiongit-hooks-listgit-raw-commitsgit-remote-origin-urlgit-semver-tagsgitconfiglocalgithub-sluggerglobglob-parentglobalsglobalthisglobbygopdgraceful-fsgraphemerhandlebarshard-rejectionhas-bigintshas-flaghas-property-descriptorshas-protohas-symbolshas-tostringtaghasownhosted-git-infohtml-encoding-snifferhttp-proxy-agenthttps-proxy-agenticonv-liteignoreimport-freshimurmurhashindent-stringinflightinheritsiniinternal-slotis-array-bufferis-arrayishis-async-functionis-bigintis-boolean-objectis-callableis-core-moduleis-data-viewis-date-objectis-extglobis-finalizationregistryis-fullwidth-code-pointis-generator-functionis-globis-mapis-numberis-number-objectis-objis-path-insideis-plain-objis-potential-custom-element-nameis-regexis-setis-shared-array-bufferis-stringis-symbolis-text-pathis-typed-arrayis-weakmapis-weakrefis-weaksetisarrayisexejackspeakjava-parserjs-tokensjs-yamljsdomjson-bufferjson-parse-better-errorsjson-parse-even-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson-stringify-safejson5jsonfilejsonparseJSONStreamkeyvkind-oflevnlines-and-columnsload-json-filelocate-pathlodashlodash-eslodash.ismatchlodash.mergelru-cachemap-objmath-intrinsicsmeowmerge2micromatchmime-dbmime-typesmin-indentminimatchminimistminimist-optionsminipassmodify-valuesmsnatural-comparenatural-compare-liteneo-asyncnormalize-package-datanwsapiobject-inspectobject-keysobject.assignobject.fromentriesobject.groupbyobject.valuesonceoptionatorown-keysp-limitp-locatep-trypackage-json-from-distparent-moduleparse-jsonparse5path-existspath-is-absolutepath-keypath-parsepath-scurrypath-typepicocolorspicomatchpifypossible-typed-array-namesprelude-lsprocess-nextick-argspunycodequeue-microtaskquick-lruread-pkgread-pkg-upreadable-streamredentreflect.getprototypeofregexp.prototype.flagsrequire-directoryresolveresolve-fromreusifyrrweb-cssomrun-parallelsafe-array-concatsafe-buffersafe-push-applysafe-regex-testsafer-buffersaxessemverset-function-lengthset-function-nameset-protoshebang-commandshebang-regexside-channelside-channel-listside-channel-mapside-channel-weakmapsignal-exitslashslice-ansisort-object-keyssort-package-jsonsource-mapspdx-correctspdx-exceptionsspdx-expression-parsespdx-license-idssplitsplit2string_decoderstring-widthstring-width-cjsstring.prototype.trimstring.prototype.trimendstring.prototype.trimstartstrip-ansistrip-ansi-cjsstrip-bomstrip-indentstrip-json-commentssupports-colorsupports-preserve-symlinks-flagsymbol-treesynckittext-extensionstext-tablethroughthrough2tinyglobbytldtstldts-coreto-regex-rangetough-cookietr46tree-killtrim-newlinestsconfig-pathstslibtsutilstype-checktype-festtyped-array-buffertyped-array-byte-lengthtyped-array-byte-offsettyped-array-lengthtypedarrayuglify-jsunbox-primitiveuniversalifyuntildifyuri-jsutil-deprecatevalidate-npm-package-licensew3c-xmlserializerwebidl-conversionswhatwg-encodingwhatwg-mimetypewhatwg-urlwhichwhich-boxed-primitivewhich-builtin-typewhich-collectionwhich-typed-arrayword-wrapwordwrapwrap-ansiwrap-ansi-cjswrappywsxml-name-validatorxmlcharsxtendy18nyallistyamlyargsyargs-parseryocto-queue
0.0.3-alpha-1.5

5 months ago

0.0.3-alpha

5 months ago

0.0.3-alpha2

5 months ago

0.0.3-alpha3

5 months ago

0.0.3-alpha1

5 months ago

0.0.3-beta

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago