| // Signature format: 4.0 |
| package androidx.wear.ongoing { |
| |
| public final class OngoingActivity { |
| method public void apply(android.content.Context); |
| method public android.graphics.drawable.Icon? getAnimatedIcon(); |
| method public String? getCategory(); |
| method public String? getContentDescription(); |
| method public androidx.core.content.LocusIdCompat? getLocusId(); |
| method public int getNotificationId(); |
| method public int getOngoingActivityId(); |
| method public android.graphics.drawable.Icon getStaticIcon(); |
| method public androidx.wear.ongoing.Status? getStatus(); |
| method public String? getTag(); |
| method public long getTimestamp(); |
| method public String? getTitle(); |
| method public android.app.PendingIntent getTouchIntent(); |
| method public static androidx.wear.ongoing.OngoingActivity? recoverOngoingActivity(android.content.Context); |
| method public static androidx.wear.ongoing.OngoingActivity? recoverOngoingActivity(android.content.Context, int); |
| method public static androidx.wear.ongoing.OngoingActivity? recoverOngoingActivity(android.content.Context, java.util.function.Predicate<androidx.wear.ongoing.OngoingActivity!>); |
| method @RequiresPermission(android.Manifest.permission.POST_NOTIFICATIONS) public void update(android.content.Context, androidx.wear.ongoing.Status); |
| } |
| |
| public static final class OngoingActivity.Builder { |
| ctor public OngoingActivity.Builder(android.content.Context, int, androidx.core.app.NotificationCompat.Builder); |
| ctor public OngoingActivity.Builder(android.content.Context, String, int, androidx.core.app.NotificationCompat.Builder); |
| method public androidx.wear.ongoing.OngoingActivity build(); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setAnimatedIcon(android.graphics.drawable.Icon?); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setAnimatedIcon(@DrawableRes int); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setCategory(String?); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setContentDescription(String?); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setLocusId(androidx.core.content.LocusIdCompat?); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setOngoingActivityId(int); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setStaticIcon(android.graphics.drawable.Icon); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setStaticIcon(@DrawableRes int); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setStatus(androidx.wear.ongoing.Status); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setTitle(String?); |
| method public androidx.wear.ongoing.OngoingActivity.Builder setTouchIntent(android.app.PendingIntent); |
| } |
| |
| public class SerializationHelper { |
| method public static void copy(android.os.Bundle, android.os.Bundle); |
| method public static androidx.wear.ongoing.OngoingActivity? create(android.app.Notification); |
| method public static androidx.wear.ongoing.OngoingActivity? create(android.os.Bundle); |
| method public static boolean hasOngoingActivity(android.app.Notification); |
| } |
| |
| public final class Status implements androidx.wear.ongoing.TimeDependentText { |
| method public static androidx.wear.ongoing.Status forPart(androidx.wear.ongoing.Status.Part); |
| method public long getNextChangeTimeMillis(long); |
| method public androidx.wear.ongoing.Status.Part? getPart(String); |
| method public java.util.Set<java.lang.String!> getPartNames(); |
| method public java.util.List<java.lang.CharSequence!> getTemplates(); |
| method public CharSequence getText(android.content.Context, long); |
| } |
| |
| public static final class Status.Builder { |
| ctor public Status.Builder(); |
| method public androidx.wear.ongoing.Status.Builder addPart(String, androidx.wear.ongoing.Status.Part); |
| method public androidx.wear.ongoing.Status.Builder addTemplate(CharSequence); |
| method public androidx.wear.ongoing.Status build(); |
| } |
| |
| public abstract static class Status.Part implements androidx.wear.ongoing.TimeDependentText { |
| } |
| |
| public static final class Status.StopwatchPart extends androidx.wear.ongoing.Status.TimerOrStopwatchPart { |
| ctor public Status.StopwatchPart(long); |
| ctor public Status.StopwatchPart(long, long); |
| ctor public Status.StopwatchPart(long, long, long); |
| } |
| |
| public static final class Status.TextPart extends androidx.wear.ongoing.Status.Part { |
| ctor public Status.TextPart(String); |
| method public long getNextChangeTimeMillis(long); |
| method public CharSequence getText(android.content.Context, long); |
| } |
| |
| public abstract static class Status.TimerOrStopwatchPart extends androidx.wear.ongoing.Status.Part { |
| method public long getNextChangeTimeMillis(long); |
| method public long getPausedAtMillis(); |
| method public CharSequence getText(android.content.Context, long); |
| method public long getTimeZeroMillis(); |
| method public long getTotalDurationMillis(); |
| method public boolean hasTotalDuration(); |
| method public boolean isCountDown(); |
| method public boolean isPaused(); |
| } |
| |
| public static final class Status.TimerPart extends androidx.wear.ongoing.Status.TimerOrStopwatchPart { |
| ctor public Status.TimerPart(long); |
| ctor public Status.TimerPart(long, long); |
| ctor public Status.TimerPart(long, long, long); |
| } |
| |
| public interface TimeDependentText { |
| method public long getNextChangeTimeMillis(long); |
| method public CharSequence getText(android.content.Context, long); |
| } |
| |
| } |
| |