-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add placeholder clipboard file for mobile driver to avoid crashes if …
…it was accidentally called.
- Loading branch information
1 parent
9eac4d7
commit 46399cb
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package gomobile | ||
|
||
import ( | ||
"fyne.io/fyne" | ||
) | ||
|
||
// Declare conformity with Clipboard interface | ||
var _ fyne.Clipboard = (*mobileClipboard)(nil) | ||
|
||
// mobileClipboard represents the system mobileClipboard | ||
type mobileClipboard struct { | ||
} | ||
|
||
// Content returns the mobileClipboard content | ||
func (c *mobileClipboard) Content() string { | ||
return "" // TODO implement ticket #414 | ||
} | ||
|
||
// SetContent sets the mobileClipboard content | ||
func (c *mobileClipboard) SetContent(content string) { | ||
// TODO implement ticket #414 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters