Class ShareItem
Class internally used to pass data options into sharing functions.
Inheritance
System.Object
ShareItem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VoxelBusters.EssentialKit
Assembly: cs.temp.dll.dll
Syntax
public class ShareItem
Properties
ItemType
Declaration
public ShareItem.ShareItemType ItemType { get; }
Property Value
| Type | Description |
|---|---|
| ShareItem.ShareItemType |
Methods
File(Byte[], String, String)
Option used to share an file content (image).
Declaration
public static ShareItem File(byte[] data, string mimeType, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | data | Image data. |
| System.String | mimeType | |
| System.String | fileName |
Returns
| Type | Description |
|---|---|
| ShareItem |
GetFileData(out String, out String)
Declaration
public byte[] GetFileData(out string mimeType, out string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | mimeType | |
| System.String | fileName |
Returns
| Type | Description |
|---|---|
| System.Byte[] |
GetText()
Declaration
public string GetText()
Returns
| Type | Description |
|---|---|
| System.String |
GetURL()
Declaration
public URLString? GetURL()
Returns
| Type | Description |
|---|---|
| System.Nullable<URLString> |
Image(Texture2D, TextureEncodingFormat, String)
Option used to share an image content.
Declaration
public static ShareItem Image(Texture2D image, TextureEncodingFormat textureEncodingFormat, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | image | Image. |
| TextureEncodingFormat | textureEncodingFormat | |
| System.String | fileName |
Returns
| Type | Description |
|---|---|
| ShareItem |
Screenshot()
Option used to a share screenshot.
Declaration
public static ShareItem Screenshot()
Returns
| Type | Description |
|---|---|
| ShareItem |
Text(String)
Option used to share a text content.
Declaration
public static ShareItem Text(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | Text. |
Returns
| Type | Description |
|---|---|
| ShareItem |
URL(URLString)
Option used to share a url.
Declaration
public static ShareItem URL(URLString url)
Parameters
| Type | Name | Description |
|---|---|---|
| URLString | url | URL. |
Returns
| Type | Description |
|---|---|
| ShareItem |