Set return value of getNotificationKind.