Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to access CSToastStyle properties to customise toast. #13

Open
techravi007 opened this issue Aug 23, 2024 · 0 comments
Open

Not able to access CSToastStyle properties to customise toast. #13

techravi007 opened this issue Aug 23, 2024 · 0 comments

Comments

@techravi007
Copy link

Can you please export all the properties for CSToastStyle class ?

    [Export("backgroundColor", ArgumentSemantic.Assign)]
    UIColor BackgroundColor { get; set; }

    [Export("titleColor", ArgumentSemantic.Assign)]
    UIColor TitleColor { get; set; }

    [Export("messageColor", ArgumentSemantic.Assign)]
    UIColor MessageColor { get; set; }

    [Export("maxWidthPercentage", ArgumentSemantic.Assign)]
    nfloat MaxWidthPercentage { get; set; }

    [Export("horizontalPadding", ArgumentSemantic.Assign)]
    nfloat HorizontalPadding { get; set; }

    [Export("cornerRadius", ArgumentSemantic.Assign)]
    nfloat CornerRadius { get; set; }

    [Export("titleFont", ArgumentSemantic.Assign)]
    UIFont TitleFont { get; set; }

    [Export("messageFont", ArgumentSemantic.Assign)]
    UIFont MessageFont { get; set; }

    [Export("titleAlignment", ArgumentSemantic.Assign)]
    UITextAlignment TitleAlignment { get; set; }

    [Export("messageAlignment", ArgumentSemantic.Assign)]
    UITextAlignment MessageAlignment { get; set; }

    [Export("titleNumberOfLines", ArgumentSemantic.Assign)]
    nint TitleNumberOfLines { get; set; }
    
    [Export("messageNumberOfLines", ArgumentSemantic.Assign)]
    nint MessageNumberOfLines { get; set; }
    
    [Export("displayShadow", ArgumentSemantic.Assign)]
    bool DisplayShadow { get; set; }

    [Export("shadowColor", ArgumentSemantic.Assign)]
    UIColor ShadowColor { get; set; }

    [Export("shadowOpacity", ArgumentSemantic.Assign)]
    nfloat ShadowOpacity { get; set; }

    [Export("shadowRadius", ArgumentSemantic.Assign)]
    nfloat ShadowRadius { get; set; }

    /// <summary>
    /// The shadow offset. The default is `CGSizeMake(4.0, 4.0)`.
    /// </summary>
    [Export("shadowOffset", ArgumentSemantic.Assign)]
    CGSize ShadowOffset { get; set; }

    /// <summary>
    /// The image size. The default is `CGSizeMake(80.0, 80.0)`.
    /// </summary>
    [Export("imageSize", ArgumentSemantic.Assign)]
    CGSize ImageSize { get; set; }

    /// <summary>
    /// The size of the toast activity view when `makeToastActivity:` is called.
    /// Default is `CGSizeMake(100.0, 100.0)`.
    /// </summary>
    [Export("activitySize", ArgumentSemantic.Assign)]
    CGSize ActivitySize { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant