CustomerCenterView class
A widget that displays the customer center inline within your app.
This allows users to manage their subscriptions, request refunds, and access customer support without leaving your app's context.
androidPlatformViewMode controls how this view is hosted on Android. By default, Flutter attempts to use Texture Layer Hybrid Composition. Hybrid Composition is more expensive, but can work around platform-view rendering issues on some Android 10 devices. Ignored on iOS and macOS.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomerCenterView
Constructors
- CustomerCenterView({Key? key, bool shouldShowCloseButton = true, AndroidPlatformViewMode androidPlatformViewMode = AndroidPlatformViewMode.textureLayerHybridComposition, CustomerCenterOnDismiss? onDismiss, CustomerCenterRestoreStarted? onRestoreStarted, CustomerCenterRestoreCompleted? onRestoreCompleted, CustomerCenterRestoreFailed? onRestoreFailed, CustomerCenterManageSubscriptions? onShowingManageSubscriptions, CustomerCenterRefundRequestStarted? onRefundRequestStarted, CustomerCenterRefundRequestCompleted? onRefundRequestCompleted, CustomerCenterFeedbackSurveyCompleted? onFeedbackSurveyCompleted, CustomerCenterManagementOptionSelected? onManagementOptionSelected, CustomerCenterCustomActionSelected? onCustomActionSelected, CustomerCenterPromotionalOfferSucceeded? onPromotionalOfferSucceeded})
-
const
Properties
- androidPlatformViewMode → AndroidPlatformViewMode
-
The mode used to host this view on Android.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCustomActionSelected → CustomerCenterCustomActionSelected?
-
final
- onDismiss → CustomerCenterOnDismiss?
-
final
- onFeedbackSurveyCompleted → CustomerCenterFeedbackSurveyCompleted?
-
final
- onManagementOptionSelected → CustomerCenterCustomActionSelected?
-
final
- onPromotionalOfferSucceeded → CustomerCenterPromotionalOfferSucceeded?
-
Called when a promotional offer purchase completes successfully,
providing the resulting customer info, transaction, and the promotional offer identifier.
final
- onRefundRequestCompleted → CustomerCenterRefundRequestCompleted?
-
final
- onRefundRequestStarted → CustomerCenterFeedbackSurveyCompleted?
-
final
- onRestoreCompleted → CustomerCenterRestoreCompleted?
-
final
- onRestoreFailed → CustomerCenterRestoreFailed?
-
final
- onRestoreStarted → CustomerCenterOnDismiss?
-
final
- onShowingManageSubscriptions → CustomerCenterOnDismiss?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldShowCloseButton → bool
-
Whether to show a close button in the customer center.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited