Inherits from NSObject
Declared in BFApp.h

Overview

This class adds some useful methods to retrive the App info

APP_NAME: Get App name

APP_BUILD: Get App build

APP_VERSION: Get App version

BFLocalizedString: Use BFLocalizedString to use the string translated by BFKit

Tasks

Class Methods

isFirstStart

+ (BOOL)isFirstStart
Discussion

Returns if is the first start of the App

Return Value

Returns if is the first start of the App

Declared In

BFApp.h

isFirstStartForCurrentVersion

+ (BOOL)isFirstStartForCurrentVersion
Discussion

Returns if is the first start of the App for current version

Return Value

Returns if is the first start of the App for current version

Declared In

BFApp.h

isFirstStartForVersion:

+ (BOOL)isFirstStartForVersion:(NSString *_Nonnull)version
Discussion

Returns if is the first start of the App for the given version

Parameters

version

Version to be checked

Return Value

Returns if is the first start of the App for the given version

Declared In

BFApp.h

onFirstStart:

+ (void)onFirstStart:(void ( ^ _Nullable ) ( BOOL isFirstStart ))block
Discussion

Executes a block on first start of the App for current version. Remember to execute UI instuctions on main thread

Parameters

block

The block to execute, returns isFirstStartForCurrentVersion

Declared In

BFApp.h

onFirstStartForCurrentVersion:

+ (void)onFirstStartForCurrentVersion:(void ( ^ _Nullable ) ( BOOL isFirstStartForCurrentVersion ))block
Discussion

Executes a block on first start of the App. Remember to execute UI instuctions on main thread

Parameters

block

The block to execute, returns isFirstStart

Declared In

BFApp.h

onFirstStartForVersion:block:

+ (void)onFirstStartForVersion:(NSString *_Nonnull)version block:(void ( ^ _Nullable ) ( BOOL isFirstStartForCurrentVersion ))block
Discussion

Executes a block on first start of the App for current given version. Remember to execute UI instuctions on main thread

Parameters

version

Version to be checked

block

The block to execute, returns isFirstStartForVersion

Declared In

BFApp.h