my.QUEvaluateProject

This method evaluates all intercepts that have been initialized and calls the specified completion callback with a map of TargetingResult objects. The TargetingResult object indicates the result of the evaluation for each intercept that has been initialized through the passed() method.

Sample Code

copy
my.call('QUEvaluateProject',{
  autoDisplay: true,
  autoCloseSurvey: true,
}).then((values)=>{
  my.alert({
    content:JSON.stringify(values)
  });
}).catch((value)=>{
  my.alert({
    title:'faile',
    content:JSON.stringify(value)
  });
})

Parameters

Name

Type

Required

Description

autoDisplay

bool

false

Whether to display automatically when Passed of TargetingResult is true

autoCloseSurvey

bool

false

Whether to automatically close the questionnaire

Success Callback Function

Name

Type

Required

Description

success

bool

true

Whether the JSAPI call is successful

code

number

true

0:success, -1:fail

message

string

false