discontinuedPackage seedkit_service_push has been discontinued.

PushProvider class

Базовый провайдер обработки пуш уведомлений

  • самостоятельно отправляет пуш уведомления в локальный канал, что бы отобразить его, при открытом приложении
  • есть апи рут, для отправки пуш токена на бэк

Constructors

PushProvider(PushModule _pushModule)

Properties

getAccessToken → String?
no setterinherited
getAuthStatusStream → Stream<AuthStatusEnum>
no setterinherited
getOnMessageStream → Stream<NotificationModel>
no setter
getOpenedAppStream → Stream<String?>
no setter
getTokenStream → Stream<String?>
no setter
getUserId → String?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

batch<T>(String path, {required PaginationModel pagination, Map<String, dynamic>? queryParameters, Options? options, RequestEnum type = .get, List<JsonFieldAliasModel> jsonSchemas = const [], required dynamic mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
delete<T>(String path, {dynamic body, Map<String, dynamic>? queryParameters, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
deleteToken() → Future<void>
download<T>(String path, {Map<String, dynamic>? params, VoidDataFunction<double>? onProgress, RequestEnum type = .get, required Future<T> saver(Uint8List bytes)}) → Future<Either<BaseException, T>>
inherited
get<T>(String path, {Map<String, dynamic>? queryParameters, required dynamic mapper(dynamic json), Options? options, VoidDataFunction<double>? onProgress, List<JsonFieldAliasModel> jsonSchemas = const [], RequestEnum type = .get}) → Future<Either<BaseException, T>>
inherited
getToken() → Future<String?>
initTokenManager({required RepeatRequestUserCase repeatRequest, required RefreshTokenRequestUserCase refreshTokenRequest, required dynamic getTokenInterseptor(InterceptorsWrapper interseptor)}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<T>(String path, {dynamic body, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
post<T>(String path, {dynamic body, Options? options, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
put<T>(String path, {dynamic body, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
requestPermission() → Future<bool>
toString() → String
A string representation of this object.
inherited
updatePushToken(String? token) → Future<Either<BaseException, void>>
upload<T>(String path, {required List<File> files, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited