//
//  AppDelegate.m
//  ASR033W
//
//  Created by MRX_ZYL on 13/10/2020.
//

#import "AppDelegate.h"
#import <ASR033WSDK/ASR033WSDK.h>
#import "System.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    if (@available(iOS 15.0, *)) {
        [UITableView appearance].sectionHeaderTopPadding = CGFLOAT_MIN;
    }
    return YES;
}



- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}


- (void)applicationDidEnterBackground:(UIApplication *)application {
    if ([[System sharedSystem] getSubscribeRFIDTopic]) {
        [[ASR033W sharedInstance] stopInventory];
    }
}


- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}

@end
