File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
ios/Capacitor/Capacitor/Plugins Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,11 @@ export interface DevicePlugin extends Plugin {
415
415
export type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown' ;
416
416
417
417
export interface DeviceInfo {
418
+ /**
419
+ * Note: this property is iOS only.
420
+ * The name of the device. For example, "John's iPhone"
421
+ */
422
+ name ?: string ;
418
423
/**
419
424
* The device model. For example, "iPhone"
420
425
*/
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public class CAPDevicePlugin: CAPPlugin {
20
20
" memUsed " : memUsed,
21
21
" diskFree " : diskFree,
22
22
" diskTotal " : diskTotal,
23
+ " name " : UIDevice . current. name,
23
24
" model " : UIDevice . current. model,
24
25
" operatingSystem " : " ios " ,
25
26
" osVersion " : UIDevice . current. systemVersion,
You can’t perform that action at this time.
0 commit comments