MFLog Class Reference

Inherits from NSObject
Declared in MFLog.h
MFLog.m

Overview

MFLog is a custom class that used for logging beacon interaction.

  event

Specifies the event of a beacon that happen.

@property (assign, nonatomic) MFBeaconEvent event

Declared In

MFLog.h

  module

Specifies the beacon module when event happen.

@property (assign, nonatomic) MFBeaconModule module

Declared In

MFLog.h

  interval

Specifies the beacon interval between entering and exiting region of beacon.

@property (assign, nonatomic) NSUInteger interval

Declared In

MFLog.h

  user

Specifies the logged in user that need to be logged.

@property (strong, nonatomic, nonnull) MFUser *user

Declared In

MFLog.h

  beacon

Specifies the beacon that need to be logged.

@property (strong, nonatomic, nonnull) MFBeacon *beacon

Declared In

MFLog.h

– sendAsyncWithBlock:

Save the MFLog asynchronously at some specified time in the future, even if Mesosfer is currently inaccessible.

- (void)sendAsyncWithBlock:(nullable MFBooleanResultBlock)block

Parameters

block

The block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).

Discussion

Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Mesosfer. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is available. Objects saved this way will persist even after the app is closed, in which case they will be sent the next time the app is opened.

Declared In

MFLog.h