Class Views
- java.lang.Object
-
- org.prebid.mobile.rendering.views.webview.mraid.Views
-
public class Views extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAG
-
Constructor Summary
Constructors Constructor Description Views()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.view.ViewgetTopmostView(android.content.Context context, android.view.View view)Finds the topmost view in the current Activity or current view hierarchy.static voidremoveFromParent(android.view.View view)
-
-
-
Method Detail
-
removeFromParent
public static void removeFromParent(android.view.View view)
-
getTopmostView
public static android.view.View getTopmostView(android.content.Context context, android.view.View view)Finds the topmost view in the current Activity or current view hierarchy.- Parameters:
context- If an Activity Context, used to obtain the Activity's DecorView. This is ignored if it is a non-Activity Context.view- A View in the currently displayed view hierarchy. If a null or non-Activity Context is provided, this View's topmost parent is used to determine the rootView.- Returns:
- The topmost View in the currency Activity or current view hierarchy. Null if no applicable View can be found.
-
-