public final class

PromptContentItemBulletedText

extends java.lang.Object

implements PromptContentItem

 java.lang.Object

↳androidx.biometric.PromptContentItemBulletedText

Gradle dependencies

compile group: 'androidx.biometric', name: 'biometric', version: '1.4.0-alpha02'

  • groupId: androidx.biometric
  • artifactId: biometric
  • version: 1.4.0-alpha02

Artifact androidx.biometric:biometric:1.4.0-alpha02 it located at Google repository (https://maven.google.com/)

Overview

A list item with bulleted text shown on PromptVerticalListContentView.

Summary

Constructors
publicPromptContentItemBulletedText(java.lang.String text)

A list item with bulleted text shown on PromptVerticalListContentView.

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public PromptContentItemBulletedText(java.lang.String text)

A list item with bulleted text shown on PromptVerticalListContentView.

Parameters:

text: The text of this list item.

Source

/*
 * Copyright 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package androidx.biometric;

import androidx.annotation.NonNull;

/**
 * A list item with bulleted text shown on {@link PromptVerticalListContentView}.
 */
public final class PromptContentItemBulletedText implements PromptContentItem {
    private final String mText;

    /**
     * A list item with bulleted text shown on {@link PromptVerticalListContentView}.
     *
     * @param text The text of this list item.
     */
    public PromptContentItemBulletedText(@NonNull String text) {
        mText = text;
    }

    @NonNull
    String getText() {
        return mText;
    }
}