How to find automation name using appium?

String AutomationName = driver.getAutomationName(); System.out.println(AutomationName); AutomationName provides Which automation engine to use Eg:-UiAutomator2 ,Appium is different types of automationName for Android.     XCUITest is for ios.