Skip to main content
Version: 5.9.6

IsSdkVersionPossible

public bool IsSdkVersionPossible();

Description

The 1:1 inquiry function is only activated when the device is running Android API Level 24(7.0.0) or higher or iOS Version 8.0 or higher.
It cannot be used if the Android version is lower than 7.0 or the iOS version is lower than 8.0, and when the OpenQuestionView method is called, false is returned and it is not activated.

Returns as true if the version of the device being used is included in the supported version, otherwise returns as false.

Example

Synchronous

BackEnd.Support.Android.Question.IsSdkVersionPossible() -> bool
BackEnd.Support.iOS.Question.IsSdkVersionPossible() -> bool

// example

bool isQuestionViewCanOpen = false;
#if UNITY_ANDROID
isQuestionViewCanOpen = BackEnd.Support.Android.Question.IsSdkVersionPossible();
#elif UNITY_IOS
isQuestionViewCanOpen = BackEnd.Support.iOS.Question.IsSdkVersionPossible();
#endif

if(isQuestionViewCanOpen)
{
// 1:1 inquiry creation logic
}
else
{
//Implement to send inquiries by email using the MailMessage function, etc.
}