void OnForegroundNotification(TeakNotification notification) { if (this.testEnumerator != null) { this.testEnumerator.Current.ForegroundNotification(notification); } }
void OnLaunchedFromNotification(TeakNotification notification) { if (this.testEnumerator != null) { this.testEnumerator.Current.LaunchedFromNotification(notification); } }
private Action <Action <Test.TestState> > ScheduleNotification(string creativeId, bool backgroundApp) { return((Action <Test.TestState> state) => { testDriver.StartCoroutine(TeakNotification.ScheduleNotification(creativeId, this.test.Name, 5, (TeakNotification.Reply reply) => { // if (reply.Notifications[0].ScheduleId == null) // { // errorText = "ScheduleId was null"; // } state(reply.Status == TeakNotification.Reply.ReplyStatus.Ok ? Test.TestState.Passed : Test.TestState.Failed); if (backgroundApp) { Utils.BackgroundApp(); } })); }); }
void OnLaunchedFromNotification(TeakNotification notification) { Debug.Log("[Teak Unity Cleanroom] OnLaunchedFromNotification: " + notification.ToString()); LogLaunchMatrixEvent("Notification"); }
public void ForegroundNotification(TeakNotification notification) { this.EvaluatePredicate(this.OnForegroundNotification, notification, (TestState state) => { this.foregroundNotification = state; }); }
public void LaunchedFromNotification(TeakNotification notification) { this.EvaluatePredicate(this.OnLaunchedFromNotification, notification, (TestState state) => { this.launchedFromNotification = state; }); }