public class

FioriOrientationListener

extends OrientationEventListener
java.lang.Object
   ↳ android.view.OrientationEventListener
     ↳ com.sap.cloud.mobile.fiori.common.FioriOrientationListener

Class Overview

Class for handling cases when reinitialization does not occur upon device rotation.

Summary

[Expand]
Inherited Constants
From class android.view.OrientationEventListener
Public Constructors
FioriOrientationListener(Context context)
Public Methods
void changeOrientation(int orientationType)
Handles the specific actions that should occur upon orientation change.
void onOrientationChanged(int orientation)
Called when an orientation change has occured.
[Expand]
Inherited Methods
From class android.view.OrientationEventListener
From class java.lang.Object

Public Constructors

public FioriOrientationListener (Context context)

Public Methods

public void changeOrientation (int orientationType)

Handles the specific actions that should occur upon orientation change. This method should be overridden by the subclass for its specific use cases.

Parameters
orientationType The orientation that the device is about to enter.

public void onOrientationChanged (int orientation)

Called when an orientation change has occured.

Parameters
orientation The device's rotation degree.