AppInfoAccessor

public class AppInfoAccessor

AppInfoAccessor provides the information about the app.

Author

Adamas

Version

1.5.0

Date

23/07/2019
  • The singleton instance in the system.

    Declaration

    Swift

    public static let standard: AppInfoAccessor
  • The name of current bundle. It will be nil if the bundle name cannot be retireved.

    Declaration

    Swift

    public var bundleName: String? { get }
  • The identifier of current bundle. It will be nil if the bundle identifier cannot be retrieved.

    Declaration

    Swift

    public var bundleIdentifier: String? { get }
  • The name being displayed in the device. It will be nil if the display name cannot be retireved.

    Declaration

    Swift

    public var displayName: String? { get }
  • The short version string of the app, which is like “1.2.3”. It will be nil if the version cannot be retrieved.

    Declaration

    Swift

    public var version: String? { get }
  • The build number of the app, which is anything defined by the user. It will be nil if the build number cannot be retrieved.

    Declaration

    Swift

    public var buildNumber: String? { get }
  • The preferred language.

    Declaration

    Swift

    public var preferredLanguage: String? { get }
  • The current region.

    Declaration

    Swift

    public var region: String? { get }
  • The initializer.

    Declaration

    Swift

    public init(bundle: Bundle = .main)

    Parameters

    bundle

    The bundle of the app.