ProtectionLayout

constructor(@NonNull context: @NonNull Context)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, @AttrRes defStyleAttr: Int)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int)


constructor(@NonNull context: @NonNull Context, @NonNull protections: @NonNull List<Protection>)

Constructs a view which draws protections contained in the specified list.

Parameters

context

the Context the view is running in, through which it can access the current theme, resources, etc.

protections

a list of protections associated with a local area.