Inherits from NSObject
Declared in Bit6Utils.h

Overview

Bit6 utility class.

Class Methods

audioDurationForFileAtPath:

Convenient method to retrieve the duration of an audio file.

+ (double)audioDurationForFileAtPath:(nonnull NSString *)filePath

Parameters

filePath

path to the audio file.

Return Value

duration in seconds of the audio file.

Declared In

Bit6Utils.h

clockFormatForSeconds:

Convenient method to convert seconds into a clock format NSString. For example 75s will be converted to 01:15

+ (nullable NSString *)clockFormatForSeconds:(double)seconds

Parameters

seconds

number of seconds to convert

Return Value

seconds in a clock format. Returns nil if the isnan(seconds).

Declared In

Bit6Utils.h

requestAccessToCameraWithSuccessBlock:deniedAccessBlock:

Request access to the Camera.

+ (BOOL)requestAccessToCameraWithSuccessBlock:(nullable void ( ^ ) ( ))successBlock deniedAccessBlock:(nullable void ( ^ ) ( ))deniedAccessBlock

Parameters

successBlock

block to be called if the request access prompt was shown and access has been granted.

deniedAccessBlock

block to be called if access was denied.

Return Value

YES if the access is enabled. Returns NO is access is denied or undetermined.

Declared In

Bit6Utils.h

requestAccessToMicrophoneWithSuccessBlock:deniedAccessBlock:

Request access to the Microphone.

+ (BOOL)requestAccessToMicrophoneWithSuccessBlock:(nullable void ( ^ ) ( ))successBlock deniedAccessBlock:(nullable void ( ^ ) ( ))deniedAccessBlock

Parameters

successBlock

block to be called if the request access prompt was shown and access has been granted.

deniedAccessBlock

block to be called if access was denied.

Return Value

YES if the access is enabled. Returns NO is access is denied or undetermined.

Declared In

Bit6Utils.h

requestAccessToPhotosWithSuccessBlock:deniedAccessBlock:

Request access to the Photo Library.

+ (BOOL)requestAccessToPhotosWithSuccessBlock:(nullable void ( ^ ) ( ))successBlock deniedAccessBlock:(nullable void ( ^ ) ( ))deniedAccessBlock

Parameters

successBlock

block to be called if the request access prompt was shown and access has been granted.

deniedAccessBlock

block to be called if access was denied.

Return Value

YES if the access is enabled. Returns NO is access is denied or undetermined.

Declared In

Bit6Utils.h