Skip to content

Commit 1bd95c7

Browse files
committed
feat: Adjust the documentation comments for CupertinoActivityType, remove the extension, and add a new get value method.
1 parent f7e4025 commit 1bd95c7

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

packages/share_plus/share_plus_platform_interface/lib/platform_interface/share_plus_platform.dart

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,14 @@ enum ShareResultStatus {
211211
unavailable,
212212
}
213213

214-
/// An abstract class that you subclass to implement app-specific services
215-
/// for iOS and macOS.
214+
/// Represents iOS-supported share activity types, such as AirDrop, Messages,
215+
/// Mail, and others.
216216
///
217-
/// https://developer.apple.com/documentation/uikit/uiactivity/activitytype
217+
/// This enum is used to identify specific activity types in the iOS share sheet,
218+
/// especially when certain types should be excluded from the share options.
219+
///
220+
/// See also:
221+
/// [UIActivity.ActivityType](https://developer.apple.com/documentation/uikit/uiactivity/activitytype)
218222
enum CupertinoActivityType {
219223
postToFacebook,
220224
postToTwitter,
@@ -235,9 +239,9 @@ enum CupertinoActivityType {
235239
sharePlay,
236240
collaborationInviteWithLink,
237241
collaborationCopyLink,
238-
addToHomeScreen,
239-
}
242+
addToHomeScreen;
240243

241-
extension CupertinoActivityTypeValue on CupertinoActivityType {
242-
String get value => toString().split('.').last;
244+
String get value {
245+
return toString().split('.').last;
246+
}
243247
}

0 commit comments

Comments
 (0)