...
RMC panelden in-app message’da olduğu gibi kazı kazan oluşturduktan sonra her customEvent çağırdığınız zaman kazı kazan olup olmadığı kontrol edilir ardından kazı kazan gösterilir.
...
Inline Nps With Numbers
To display an Inline Nps with Numbers view, you can call the getNpsWithNumbersView method, which takes a properties parameter of type With Numbers görüntülemek için, [String: String] , a delegate
parameter containing the npsItemClicked
method, and a completionHandler
that receives an optional VisilabsNpsWithNumbersContainerView
object.
The delegate
parameter is used to handle button click event, and contains a method called npsItemClicked
that is triggered when the user taps on a button.
The completionHandler
receives an optional VisilabsNpsWithNumbersContainerView
object, which is only returned if there is an action matching the given criteria. If there is no matching action, the completionHandler
will return nil
türünde bir properties parametresi, npsItemClicked
yöntemini içeren bir delegate
parametresi ve isteğe bağlı bir VisilabsNpsWithNumbersContainerView
nesnesi alan bir completionHandler
getNpsWithNumbersView
yöntemini çağırabilirsiniz.
delegate
parametresi, buton tıklama olayını işlemek için kullanılır ve kullanıcı bir butona dokunduğunda tetiklenen npsItemClicked
adlı bir yöntem içerir.
completionHandler
, yalnızca belirli ölçütlerle eşleşen bir eylem varsa döndürülen isteğe bağlı bir VisilabsNpsWithNumbersContainerView
nesnesi alır. Eşleşen bir eylem yoksa, completionHandler
sıfır döndürür.
Code Block |
---|
Visilabs.callAPI().getNpsWithNumbersView(properties: props, delegate: self){ npsView in DispatchQueue.main.async { if let npsView = npsView { self.npsView = npsView self.npsView = npsView self.view.addSubview(npsView) npsView.translatesAutoresizingMaskIntoConstraints = false npsView.topAnchor.constraint(equalTo: self.npsWithNumbersButton.bottomAnchor, constant: -50).isActive = true npsView.widthAnchor.constraint(equalTo: self.view.saferAreaLayoutGuide.widthAnchor).isActive = true npsView.heightAnchor.constraint(equalToConstant: 550).isActive = true } else { print("There is no nps action matching your criteria.") } } } |
...