summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLDynamicMenuUpdateAlgorithm.h
blob: 64d7d2585007cc36a5d99f4afd9931da8162ac2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  SDLMenuUpdateAlgorithm.h
//  SmartDeviceLink
//
//  Created by Justin Gluck on 5/14/19.
//  Copyright © 2019 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SDLDynamicMenuUpdateRunScore;
@class SDLMenuCell;

NS_ASSUME_NONNULL_BEGIN

@interface SDLDynamicMenuUpdateAlgorithm : NSObject

/**
 Compares the old and the new menus to find the best combination of add and delete commands

 @param oldMenuCells The old menu array
 @param updatedMenuCells The new menu array
 */
+ (nullable SDLDynamicMenuUpdateRunScore *)compareOldMenuCells:(NSArray<SDLMenuCell *> *)oldMenuCells updatedMenuCells:(NSArray<SDLMenuCell *> *)updatedMenuCells;

@end

NS_ASSUME_NONNULL_END