Expose set ETag function (#443)
Co-authored-by: Tommy Meisel <thmeisel@microsoft.com>
This commit is contained in:
Родитель
3540c4dc7c
Коммит
c49c6da7b3
|
@ -25,6 +25,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
*/
|
||||
-(void)setUserAdvertisingId:(nonnull NSString *)userAdvertisingId;
|
||||
|
||||
/*!
|
||||
@brief Sets the experiment tag (experiment configuration) context information for telemetry events.
|
||||
<b>Note:</b> This method removes any previously stored experiment IDs that were set using setAppExperimentETag.
|
||||
@param eTag A string that contains the ETag which is a hash of the set of experiments.
|
||||
*/
|
||||
-(void)setAppExperimentETag:(nonnull NSString *)eTag;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -37,4 +37,10 @@ using namespace MAT;
|
|||
_wrappedSemanticContext->SetUserAdvertisingId(strUserAdvertisingId);
|
||||
}
|
||||
|
||||
-(void)setAppExperimentETag:(nonnull NSString *)eTag
|
||||
{
|
||||
std::string strETag = std::string([eTag UTF8String]);
|
||||
_wrappedSemanticContext->SetAppExperimentETag(strETag);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Загрузка…
Ссылка в новой задаче