MCPcopy Create free account
hub / github.com/OneUIProject/oneui-core / of

Method of

core/src/main/java/androidx/core/graphics/Insets.java:61–67  ·  view source on GitHub ↗

Return an Insets instance with the appropriate values. @param left the left inset @param top the top inset @param right the right inset @param bottom the bottom inset @return Insets instance with the appropriate values

(int left, int top, int right, int bottom)

Source from the content-addressed store, hash-verified

59 * @return Insets instance with the appropriate values
60 */
61 @NonNull
62 public static Insets of(int left, int top, int right, int bottom) {
63 if (left == 0 && top == 0 && right == 0 && bottom == 0) {
64 return NONE;
65 }
66 return new Insets(left, top, right, bottom);
67 }
68
69 /**
70 * Return an Insets instance with the appropriate values.

Callers 15

getInsetsForTypeMethod · 0.95
getSystemWindowInsetsMethod · 0.95
getVisibleInsetsMethod · 0.95
getStableInsetsMethod · 0.95
insetInsetsMethod · 0.95
getRootWindowInsetsMethod · 0.95
addMethod · 0.95
subtractMethod · 0.95
maxMethod · 0.95
minMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected