Someone else can chime in and tell me a better way, but I don't believe there would be a unified API for this since rotation is handled by the platform (eg, desktop has none)
You'd do it in the activity/view controller creation for android and iOS respectively