MoEngageShowNudgeTask
@objc(MoEngageShowNudgeTask)
public final class MoEngageShowNudgeTask : MoEngageBaseTask, MoEngageTaskProtocol
Typed task returned by MoEngageSDKInApp.showNudge(...) overloads
(non-intrusive nudges anchored to a screen position). Carries a
MoEngageShowNudgeResult on success AFTER the nudge is visibly rendered
on screen — same resolve semantic as MoEngageShowInAppTask.
onFailure codes are the same set as MoEngageShowInAppTask —
.campaignNotFound, .renderFailed, .htmlAssetLoadFailed, or
.sdkNotInitialized.
Multiple pre-sync calls at the SAME position: earlier calls reject with
.duplicateFunctionCall; the most-recent retained task at that position
settles on the actual outcome at sync-completion. Different positions are
independent (slot-keyed by position).
-
Declaration
Swift
public typealias Success = MoEngageShowNudgeResult -
Declaration
Swift
public typealias Failure = MoEngageRequestFailure