Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
6fea5540
Commit
6fea5540
authored
May 29, 2020
by
乔金柱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jql/expore' into 'master'
实时精准曝光 See merge request
!56
parents
a27f6b25
7b4fff9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
Podfile.lock
Example/Podfile.lock
+2
-2
GMExposureManager.h
GMPhobos/Classes/Exposure/GMExposureManager.h
+2
-3
GMExposureManager.m
GMPhobos/Classes/Exposure/GMExposureManager.m
+1
-1
No files found.
Example/Podfile.lock
View file @
6fea5540
PODS:
- GMCache (1.0.1):
- TMCache (= 2.1.0)
- GMPhobos (2.0.
4
):
- GMPhobos (2.0.
6
):
- GMCache
- MagicalRecord
- MJExtension
...
...
@@ -28,7 +28,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMPhobos:
fd6f7e453e71fb7f51d8c5601e605c110ddfda92
GMPhobos:
e70f78a492eca95a5c5152620deda65e49f4e216
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
...
...
GMPhobos/Classes/Exposure/GMExposureManager.h
View file @
6fea5540
...
...
@@ -34,15 +34,14 @@ typedef NS_ENUM(NSInteger, GMViewTrackerType) {
};
// 记录方式
@interface
GMExposureManager
:
NSObject
/// 设置上报数据地址
@property
(
nonatomic
,
copy
)
NSString
*
uploadExposureAPI
;
/**
* 精准曝光数据上报模式
* 默认为 GMExpoUploadModePage
*/
@property
(
nonatomic
,
assign
)
GMExpoUploadMode
uploadMode
;
/** view出现的屏幕的占比 默认0.
01f
*/
/** view出现的屏幕的占比 默认0.
5f,如果后期再次修改为0.01时 需要修改老首页曝光逻辑
*/
@property
(
nonatomic
,
assign
)
CGFloat
exposureDimThreshold
;
// view visble in size > exposureDimThreshold
/** 曝光最少时长 默认0.01s (目前暂未使用)*/
@property
(
nonatomic
,
assign
)
NSTimeInterval
exposureMinDuration
;
// view duration > exposureMinDuration
...
...
GMPhobos/Classes/Exposure/GMExposureManager.m
View file @
6fea5540
...
...
@@ -42,7 +42,7 @@
_exposurePageDictM
=
[
NSMutableDictionary
dictionary
];
_exposureViewDictM
=
[
NSMutableDictionary
dictionary
];
_uploadMode
=
GMExpoUploadModePage
;
_exposureDimThreshold
=
0
.
01
f
;
_exposureDimThreshold
=
0
.
5
f
;
_exposureMinDuration
=
0
.
01
f
;
[
self
addObserverMethod
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment