ABCSettings Class Reference

Inherits from NSObject
Declared in ABCSettings.h

Overview

ABCSettings represent settings for the associated ABCAccount. Like all other account info, these settings are locally encrypted and synchronized between devices. Must call [ABCSettings loadSettings] before reading and [ABCSettings saveSettings] after writing

  secondsAutoLogout

How many seconds after the app is backgrounded before the user should be auto logged out

@property (nonatomic) int secondsAutoLogout

Discussion

How many seconds after the app is backgrounded before the user should be auto logged out

Declared In

ABCSettings.h

  defaultCurrency

Default currency code for new wallets and for the account total on Wallets screen

@property (nonatomic) ABCCurrency *defaultCurrency

Discussion

Default currency code for new wallets and for the account total on Wallets screen

Declared In

ABCSettings.h

  denomination

Current denomination for account (BTC, mBTC, or bits)

@property (nonatomic, strong) ABCDenomination *denomination

Discussion

Current denomination for account (BTC, mBTC, or bits)

Declared In

ABCSettings.h

  firstName

Users first name (optional)

@property (nonatomic, copy) NSString *firstName

Discussion

Users first name (optional)

Declared In

ABCSettings.h

  lastName

Users last name (optional)

@property (nonatomic, copy) NSString *lastName

Discussion

Users last name (optional)

Declared In

ABCSettings.h

  nickName

Users nick name (optional)

@property (nonatomic, copy) NSString *nickName

Discussion

Users nick name (optional)

Declared In

ABCSettings.h

  fullName

Users full name (read only) set by ABC as a combination of first, last, and nickname

@property (nonatomic, copy) NSString *fullName

Discussion

Users full name (read only) set by ABC as a combination of first, last, and nickname

Declared In

ABCSettings.h

  exchangeRateSource

Preferred exchange rate source. Set to one of the values in ABCArrayExchanges

@property (nonatomic, copy) NSString *exchangeRateSource

Discussion

Preferred exchange rate source. Set to one of the values in ABCArrayExchanges

Declared In

ABCSettings.h

  bNameOnPayments

If YES, payment request QR Codes and URIs should have the user’s firstName, lastName, and nickName on the request

@property (nonatomic) bool bNameOnPayments

Discussion

If YES, payment request QR Codes and URIs should have the user’s firstName, lastName, and nickName on the request

Declared In

ABCSettings.h

  bSpendRequirePin

Require a PIN on spend. This is not enforced by ABC but a reference for the GUI to verify

@property (nonatomic) bool bSpendRequirePin

Discussion

Require a PIN on spend. This is not enforced by ABC but a reference for the GUI to verify

Declared In

ABCSettings.h

  spendRequirePinSatoshis

Require a PIN if spending greater than spendRequirePinSatoshis. This is not enforced by ABC but a reference for the GUI to verify

@property (nonatomic) int64_t spendRequirePinSatoshis

Discussion

Require a PIN if spending greater than spendRequirePinSatoshis. This is not enforced by ABC but a reference for the GUI to verify

Declared In

ABCSettings.h

– loadSettings

Loads all settings into ABCSettings from encrypted storage

- (NSError *)loadSettings

Return Value

NSSError object

Discussion

Loads all settings into ABCSettings from encrypted storage

Declared In

ABCSettings.h

– saveSettings

Saves all settings from ABCSettings to encrypted storage

- (NSError *)saveSettings

Return Value

NSSError object

Discussion

Saves all settings from ABCSettings to encrypted storage

Declared In

ABCSettings.h

– touchIDEnabled

Returns YES if touchID is allowed on this account and device

- (BOOL)touchIDEnabled

Return Value

YES if allowed

Discussion

Returns YES if touchID is allowed on this account and device

Declared In

ABCSettings.h

– enableTouchID:

Enable touchID on this account and device. This may require the optional password parameter if this account was logged into with out a password (ie. with PIN)

- (BOOL)enableTouchID:(NSString *)password

Parameters

password

(optional)

Return Value

YES if successfully enabled

Discussion

Enable touchID on this account and device. This may require the optional password parameter if this account was logged into with out a password (ie. with PIN)

Declared In

ABCSettings.h

– disableTouchID

Disables TouchID for this account & device

- (void)disableTouchID

Discussion

Disables TouchID for this account & device

Declared In

ABCSettings.h