-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
1,787 additions
and
1,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
SensorsAnalyticsSDK/AutoTrack/AppClick/SAAppClickTracker.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// SAAppClickTracker.h | ||
// SensorsAnalyticsSDK | ||
// | ||
// Created by 张敏超🍎 on 2021/4/27. | ||
// Copyright © 2021 Sensors Data Co., Ltd. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import "SAAppTracker.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface SAAppClickTracker : SAAppTracker | ||
|
||
/// 触发 UIApplication 全埋点点击事件 | ||
/// @param view UIView | ||
- (void)autoTrackEventWithView:(UIView *)view; | ||
|
||
/// 触发 Cell 全埋点点击事件 | ||
/// @param scrollView cell 所在的视图 | ||
/// @param indexPath cell 位置 | ||
- (void)autoTrackEventWithScrollView:(UIScrollView *)scrollView atIndexPath:(NSIndexPath *)indexPath; | ||
|
||
/// 触发 Gesture 全埋点点击事件 | ||
/// @param view UIView | ||
- (void)autoTrackEventWithGestureView:(UIView *)view; | ||
|
||
/// 通过代码触发 UIView 的 $AppClick 事件 | ||
/// @param view UIView | ||
/// @param properties 自定义属性 | ||
- (void)trackEventWithView:(UIView *)view properties:(NSDictionary<NSString *, id> * _Nullable)properties; | ||
|
||
/// 忽略某一类型的 View | ||
/// @param aClass View 对应的 Class | ||
- (void)ignoreViewType:(Class)aClass; | ||
|
||
/// 判断某个 View 类型是否被忽略 | ||
/// @param aClass Class View 对应的 Class | ||
- (BOOL)isViewTypeIgnored:(Class)aClass; | ||
|
||
/// 是否忽略视图的点击事件 | ||
/// @param view UIView | ||
- (BOOL)isIgnoreEventWithView:(UIView *)view; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.